GeneralMills / pytrends

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

429 Error #618

Open rezar362 opened 3 months ago

rezar362 commented 3 months ago

The library has stopped working, any query for interest over time returns:

pytrend.build_payload(kw_list=['pizza', 'bagel']) pytrend.interest_over_time()

raise exceptions.TooManyRequestsError.from_response(response) pytrends.exceptions.TooManyRequestsError: The request failed: Google returned a response with code 429

Here is the Python session : Python 3.9.6 (default, Oct 18 2022, 12:41:40) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin

mk-hasan commented 3 months ago

sam here since few days.

michaelmcgarry commented 3 months ago

Been facing this issue for around a week and having no success with workarounds like taking the nid_cookie from requests / selenium. Free trial account with SERP API seems to be able to scrape the data, but they don't have all of the functionality that I need sadly.

dteite commented 3 months ago

Same problem

vijayoct27 commented 2 months ago

I am facing the same issue

AhmadKhanSenpai commented 2 months ago

Its because Google trends have changed their backend, you need a token to get the information from the website and google is not letting pytrends to get it through requests module.

KensakuKose commented 1 month ago

I'm facing same issue too.

MohammedN-hash commented 1 month ago

Any fix yet?