You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time I specify date="today 90-d", I don't get the fully ninety days of trend data for any term. Is this something to do with Google authentication or a bug in the library?
The text was updated successfully, but these errors were encountered:
Here's an example of how I'm using it. Keys is something like baseball or football.
def GT_Daily_Run(keys):
# connect to Google
connector = pyGTrends(google_username, google_password)
# make request
connector.request_report(keys, date="today 90-d", geo="US")
# wait a random amount of time between requests to avoid bot detection
time.sleep(randint(5, 10))
# download file
connector.save_csv(path, '' + "GT_Daily" + '' + keys)
Ok I think I figured this out. Today is March 7th. If I use 'today 90-d' it actually does 2015-12-10 to 2016-03-08 which is 90days inclusive. This might be because it is already the 8th in UTC time. Google does not respect the user timezone for the today #-d.
If you are referring to blanks for the last 1-3 days Google seems to hold off on reporting those. Not much I can do.
Every time I specify date="today 90-d", I don't get the fully ninety days of trend data for any term. Is this something to do with Google authentication or a bug in the library?
The text was updated successfully, but these errors were encountered: