Disclosure: I built the Apify Actor mentioned in fix 3, so I'm biased. Apify links here are referral links. Fixes 1 and 2 don't need it at all.
Your Google Trends script worked yesterday. Today it stops with:
pytrends.exceptions.TooManyRequestsError: The request failed: Google returned a response with code 429
Enter fullscreen mode
Exit fullscreen mode
Here is what that error means, what state pytrends is in today, and three ways to get past it, starting with the free ones.
Why it happens
pytrends doesn't use an official API. It sends the same requests the trends.google.com website sends, and Google rate-limits them. When Google answers with HTTP status 429 ("Too Many Requests"), pytrends raises TooManyRequestsError . Google doesn't publish the limit, so there is no safe number of requests per minute to aim for.β¦