-
Notifications
You must be signed in to change notification settings - Fork 816
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
new version of google trends not compatible whit pytrend 4.9.0 #566
Comments
Same for me ResponseError: The request failed: Google returned a response with code 400 I tried user_agent, proxy and vpn as well. Also changed to "GET" to "POST" in @jesvinc #561 (comment) still no luck. I was using multinterest like the example below pytrends.build_payload(kw_list=['pizza', 'bagel'], timeframe=['2022-09-04 2022-09-10', '2022-09-18 2022-09-24'])) Thanks for all efforts |
Same as above |
I´ve did what totencrab suggested Now I get a 400 error
pytrends.exceptions.ResponseError: The request failed: Google returned a response with code 400 |
Sorry mate, I'm not sure why it's not working 🤷♂️ This is a copy of my pytrends.py if you wanted to have a closer look. |
Google Trends slightly changed its HTTP requests calls: - the "get cookie" request changed its URL, needed now an extra "explore/"; this was the main reason of the premature 429 error responses. - the "widgets" request is now POST instead of GET. Before this change the requests returned almost consistently 429 error responses, now it returns results again. Fixes GeneralMills#566, GeneralMills#567, GeneralMills#561
hi dear Eddy Lazzarin
In recent days, Google Trends has made changes in its service.
I think that the new version of google trends is not compatible with Pytrends 4.9.0
Please check the issue.
for more information, I added python stack trace of error.
best regards
ithabibi
The text was updated successfully, but these errors were encountered: