Skip to content
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

The request failed: Google returned a response with code 429. #413

Closed
JacobLau84 opened this issue Jun 24, 2020 · 10 comments
Closed

The request failed: Google returned a response with code 429. #413

JacobLau84 opened this issue Jun 24, 2020 · 10 comments

Comments

@JacobLau84
Copy link

The request failed: Google returned a response with code 429.

@youngjunyi
Copy link

Having the same issue here - The request failed: Google returned a response with code 429.

@Josh1punch
Copy link

I think you're writing the code in a for loop without sleep time? The svr will be too busy to handle hundreds of response request

@CameronSima
Copy link

Received "you have reached your quota limit" on my very first request and all subsequent requests, all spaced several minutes apart.

@odufb
Copy link

odufb commented Nov 20, 2020

Having same issue. I check previous answers but all not work for me.

@jakek1980
Copy link

having the same issue. google returned a response with code 429.

@mevalerio
Copy link

Is there anyone that can provide a sensible estimation of the number of requests before this error appears?

Thanks

@James-E-A
Copy link

Received "you have reached your quota limit" on my very first request and all subsequent requests, all spaced several minutes apart.

Are you on a university connection or otherwise shared IP?

@rpivo
Copy link

rpivo commented Feb 22, 2021

When testing out a google trends url in postman, I get a 429 response, which looks like it's the result of not having the NID cookie set. After that gets set, then the GET request responds with a 200.

I'm not sure if the 429 is always the result of this NID cookie not properly getting set, but seems like could be a possibility. There is logic in the request.py file to prepare this cookie: https://github.com/GeneralMills/pytrends/blob/master/pytrends/request.py#L62-L98

@renatobibiano
Copy link

anyone found a solution to this?
when I run my code on my computer it goes ok, but when I do that on my prod environment (on AWS) I'm getting this 429

emlazzarin added a commit that referenced this issue Dec 26, 2022
Fix 429 errors (Fixes #354, #413, #492, #523, #535, #538) and fix pandas `frame.append` deprecation warning (Fixes #525)
@emlazzarin
Copy link
Collaborator

Fixed by #553.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests