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

Still getting error #429 at first try #558

Closed
gicanato opened this issue Feb 3, 2023 · 1 comment
Closed

Still getting error #429 at first try #558

gicanato opened this issue Feb 3, 2023 · 1 comment

Comments

@gicanato
Copy link

gicanato commented Feb 3, 2023

Hi, everyone.

I'm still having a lot of trouble with error #429. My code is based on 28 requests in total and I use it once a week. I don't think it should have any problem with rate limits, but to be honest I can't get past the first request without the error popping up. I'm using the last pytrends with all the corrections done to requests_args and I'm algo using the user agent on my code (explicitly copied from the other post). Am I missing something? Also, don't know if it matters but I run the code on my office's VPN, but it doesn't work on my home network either. This is the beginning of my code:

requests_args = {
'headers': {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36'
}
}
pytrends = TrendReq(requests_args=requests_args)

@gicanato
Copy link
Author

Guys, nevermind, it was my work's VPN all along.

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

1 participant