-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list index out of range after calling .related_queries() method #628
Comments
I have the same problem. My guess is that the API has changed. Is there a workaround? |
Received data: {'default': {'rankedList': []}} On the evening of the 19th, my request was successful, but from the 20th onwards, I got an error: IndexError: list index out of range |
I have the same problem. |
same problem here. It has been 2 days. |
indeed both |
I have the same problem. |
I have the very same issue with Related topics & Related queries... Are there any updates? Same issues when testing locally or via hosted web page. |
still facing the same issue... anyone have any workaround? |
same issue here... any updates? |
Not only related_queries(), but also related_topics() are the same |
same here, it's broken |
Same problem here, related_queries() endpoint is broken, does anyone support this ? |
Same here, it's not working |
By inspecting the code I found the reason why it is failing. This error comes from when retrieving tokens, apparently Google inserted a challenge that gets you flagged as USER_TYPE_SCRAPER whenever you fail it. In order to work the server must return tokens with a request having USER_TYPE_LEGIT_USER in it. |
same here, any updates? |
Has anyone managed to solve this problem? |
Hi, has anyone managed to solve this for related_queries? |
After several tests, I found that google only allowed logged in account to access related queries and related topics, so there is no way to use any scrapper to get those infos now. |
This is not entirely accurate. In trendspy, I think I’ve managed to work around this limitation. You can access related queries and topics without needing a logged-in account. I’ve successfully tested it with at least 600 sequential requests (with 1-second pauses), and it worked without issues. That said, if you send too many requests too quickly, you might still run into a 429 error, so pauses are recommended. Here’s a quick example of how it works: !pip install trendspy
from trendspy import Trends
tr = Trends()
related = tr.related_queries('python')
print(related) |
It's work! Thanks for your help, you did a great job. |
@sdil87 I'm receiving this error. Do You know what is the problem?
|
This is a HTTP 429 "Too Many Requests" error returned by Google Trends API, indicating you've exceeded their rate limiting thresholds. The error message above provides several approaches you can try to resolve this issue. |
Hi :)
It looks like
.related_queries()
method is broken.Sample code:
Traceback:
The text was updated successfully, but these errors were encountered: