GeneralMills / pytrends

Pseudo API for Google Trends
Other
3.12k stars 798 forks source link

Sudden onset of 429 errors #588

Open dvech432 opened 12 months ago

dvech432 commented 12 months ago

I use version 4.9.2 and starting from today I am getting 429 error for all requests. I sent a simple Pytrends code snippet to some co-workers and they are getting it to.

Any suggestions, work arounds? Did Google change something and can we expect it to be a temporary issue?

EDIT: yesterday it worked fine for some hours, however, today it's bad again. The most impacted command is 'pytrends.related_queries()'. The 'pytrends.interest_over_time()' command is not great, around 2-3 retries are needed to get the results.

Alert-Wang commented 11 months ago

same issue image

Nicole-Yancy commented 11 months ago

me too :(

Screen Shot 2023-07-18 at 12 30 05 PM
Nicole-Yancy commented 11 months ago

update this worked for me https://github.com/GeneralMills/pytrends/pull/563#issuecomment-1466338941

2uanDM commented 11 months ago

update this worked for me #563 (comment)

You mean that if you create a new class like in the above comment, then you don't get the 429 if you change the time frame to 'now 1-H' ?

The weird things is that, if I change the time frame to 'today 5-year', it works ?