GeneralMills / pytrends

Pseudo API for Google Trends
Other
3.24k stars 816 forks source link

interest_over_time: Beyond 5 years (2004-Present) #385

Open imlocle opened 4 years ago

imlocle commented 4 years ago

Currently the interest_over_time() function is only grabbing the past 5 years.

On Google Trends, the drop down has an option for '2004 - Present'.

Can you add an option for grabbing the '2004 - Present' ?

The CSV url has this within the req: req={"time":"2004-01-01 2020-04-23","resolution":"MONTH","locale":"en-US","comparisonItem":[{"geo":{"country":"US"}

Thanks!

fahadshery commented 4 years ago

You can acheive this by:

pytrend.build_payload(kw_list=my_list, timeframe='all')