Comments (3)
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)
from pytrends.
Hmm if I try different terms I get 88days. Still not 90. I'll look into this.
from pytrends.
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.
from pytrends.
Related Issues (20)
- MaxRetryErr HOT 8
- It broke again HOT 56
- Code documentation :)
- Broken for short timeframe - question for experts HOT 4
- related_queries and related_topics not working (infinite loop) HOT 4
- Anyone getting "Holes" in the data again? HOT 2
- Many tests fail
- Error with all request: HTTPSConnectionPool(host='trends.google.com', port=443): Max retries exceeded HOT 17
- Update to Selenium script HOT 4
- is that pytrends still unavailiable everyone? HOT 4
- Selenium script giving exception HOT 2
- Error 429 for the past few days HOT 14
- Interested in Maintainers
- KeyError: 'content-type' when calling build_payload()
- Is there an upper limit on display results? HOT 1
- 429 Error HOT 7
- I am interested in reverse engineering Google trends HOT 1
- daily serach trends
- Too many 429 error responses. Max retries exceeded. #578 HOT 2
- Search volume HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytrends.