Comments (4)
Use category number and Timestamp along with date start and end will work
from pytrends.
Many thanks @praburamWAPKA it saved my day. It works by setting the timeframe on this format "YYYY-MM-DDT00 YYYY-MM-DDT01" and cat=0 and tz=0;
I still wonder my self what is the best window in time to observe a trend (at the regional DMA level).
Let's take an example:
A trend X appeared yesterday (Day D-1).
A typical trend graph shape seems to be: flat then big peak the day of trend then going flat. It is even true for big international events, things seems to be interesting for people one day, two days at the best and then disappear in the search on Google.
![image](https://private-user-images.githubusercontent.com/303557/286626340-dd7af561-72f1-470c-bfee-7640601034f1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDI1OTY1OTAsIm5iZiI6MTcwMjU5NjI5MCwicGF0aCI6Ii8zMDM1NTcvMjg2NjI2MzQwLWRkN2FmNTYxLTcyZjEtNDcwYy1iZmVlLTc2NDA2MDEwMzRmMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBSVdOSllBWDRDU1ZFSDUzQSUyRjIwMjMxMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDIzMTIxNFQyMzI0NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNDhhYTk0ZTNkMmQzNDU4NDdkNmFkNWFkOWIwZTAxNGU3ZWUyMmNhMjE4ZWIxZGFmYzA1NjhlMWYxYTgzNzlhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.2hfbrp2vZt5F_QWidQL0b5rXDVS6bW2FHzugJCId7_o)
My feeling is I can "observe" the date on the last 7 days to have a 'good' view of the trend repartition on regional level.
The pure logical way to do it would be to 'observe the data for the day it appears from D-1 T 00 to D T 00 but I get a lot of 429 error if I try this.
What folks do you think from this window (7 days) approach to analyse the data ?
Thanks by advance
from pytrends.
right now 7 days only working
from pytrends.
I make it works for last day but it seems hazardous.
Also there is a bug in this line:
Line 337 in a9984ff
You have to remove self.geo == 'US' and
if you want GEO different than US, in my case FR
from pytrends.
Related Issues (20)
- 500 internal server errors HOT 48
- Missing Data on All Charts Now HOT 3
- Sudden onset of 429 errors HOT 4
- 500 Error With get_historical_interest Function HOT 2
- Some keywords return empty datafreme, although the trendline is present on Google Trends HOT 1
- TypeError: Retry.__init__() got an unexpected keyword argument 'method_whitelist' (urllib3 upgrade) HOT 2
- Returns all data as zero when timeframe set to today 5-y HOT 6
- Pytrends encountering "Error 500" from Google for periods less than now 7-d - Seeking community insights
- Is PyTrends working for ANYONE right now? HOT 12
- The 'interest_by_region' does not match the UI.
- timeframe doesn't work - Google returned a response with code 429 HOT 13
- Pytrends work again with time frame 1 - H, 4 - H or 1 - D HOT 1
- Interested in being a Maintainer
- Proxy error
- Impossible to get data for worldwide after any country has been set
- MaxRetryErr HOT 8
- It broke again HOT 56
- Code documentation :)
- related_queries and related_topics not working (infinite loop) HOT 4
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.