GeneralMills / pytrends

Pseudo API for Google Trends
Other
3.28k stars 821 forks source link

`get_historical_interest` returns no data between `2021-08-02 12:00pm` and `2021-10-07 05:00pm` for any keyword #502

Open mzgut opened 2 years ago

mzgut commented 2 years ago

Hello!

I'm trying to see if somehow it is only for me, but seems that the get_historical_interest function which I use to get hour level data has a gap for more that 2 months of data (between 2021-08-02 12:00pm and 2021-10-07 05:00pm), regardless of which keyword is being used.



filename = 'nba.csv'
pytrends = TrendReq(hl='en-US', tz=300)

kw_list = ["NBA"]
p = pytrends.get_historical_interest(kw_list, year_start=2021, month_start=8, day_start=1, hour_start=0,
                                     year_end=2022, month_end=10, day_end=5, hour_end=0,
                                     cat=0, geo='', gprop='', sleep=0)
p.to_csv(filename)
joelwk commented 2 years ago

Same issue with those dates too (started yesterday), looking for financial data though. I was assuming it just had something to do with my search terms, but I guess not. No additional info yet, thanks for posting

Mushoz commented 2 years ago

For me, the missing data is between 2021-08-06 and 2021-10-01. Is this a bug with this program, or is this an issue with Google's API?

Mushoz commented 2 years ago

Seems to be fixed for me, with the exact same pytrends version. So perhaps it was an issue with Google's API? @joelwk , is it fixed for you as well?