Comments (12)
On this page there is a solution in C# which works since 30.04.2013 ("As of 4/30/2013 this works..."). Can you anyhow make use of the idea for python?
from google-trends-csv-downloader.
Which page?
from google-trends-csv-downloader.
Sorry pedro, i forgot to post the page.
http://stackoverflow.com/questions/4986758/oauth-google-trends-download-csv-file
After "As of 4/30/2013 this works..." there is c# code which is claimed to be able to automatically download Google Trends data. Maybe you can adapt it to your python code. this would be great. :)
from google-trends-csv-downloader.
I still hit a quota limit when using the method ggjj11 linked. Is anybody else experiencing similar problems?
from google-trends-csv-downloader.
Have you implemented the method in python? If so, could you please release it so i can also try it?
from google-trends-csv-downloader.
I only tried that method in Matlab, and have started using this: https://gist.github.com/tlmaloney/5650699 instead, as the author mentioned in a forum (https://www.quantopian.com/posts/google-search-terms-predict-market-movements) that he wasn't hitting any limits with that.
I'm running that python code from matlab now, but it falls over when requesting multiple search terms
from google-trends-csv-downloader.
Great. Thank you for pointing out this tool 👍
from google-trends-csv-downloader.
Unfortunately I hit the quota limit using this method yesterday. I haven't heard back from the author.
Could you please try it and tell me if you hit a quota limit too?
from google-trends-csv-downloader.
A little playing around reveals that Google is blocking this by IP address (no real surprise). Therefore, a workaround that I just successfully used was getting a fresh IP address from the local DHCP server. This buys me a new round of searches (3 or 4), and then I need to refresh the IP again.
Refreshing the IP address isn't straightforward, but not too bad (and better than running manual searches!). You can use a locally assigned MAC address as described in the comment by Keltari here: http://superuser.com/a/600299
Until we get to the bottom of the quota issue, this makes a nice partial solution.
from google-trends-csv-downloader.
I've been using a VPN to change IP, which give me another 4 searches on average. changing the IP again will give me another 4 searches and so on.
I would have thought that using a VPN would completely release the quota- Google must be able to see some other information to identify that this machine can not have another 1000 searches.
If anybody has some ideas to what the extra info is, I'd be very interested to hear it.
from google-trends-csv-downloader.
I did notice that this code now limits the queries to about 4/day. I investigated further and it seems that now a cookie call PREF is needed.
Adding:
ck2 = Cookie(version=0, name='PREF', value='', port=None, port_specified=False, domain='.google.com', domain_specified=False,domain_initial_dot=False, path='', path_specified=False, secure=False, expires=None, discard=False, comment=None, comment_url=None, rest=None)
and
self.cj.set_cookie(ck2)
fixes it for me
from google-trends-csv-downloader.
Closing this ticket after merging @simonavril PR (commit 93e629a).
from google-trends-csv-downloader.
Related Issues (9)
- You've exceeded your quota. Continue tomorrow ... HOT 1
- Not working on Python 3.5 HOT 3
- No longer working (since Google Trends UI was overhauled)
- Lack of PREF cookie results in "quota exceeded" error HOT 22
- Extracting Data Within Certain Date Ranges HOT 3
- How to send in requests for different keywords? HOT 1
- Sanitizing downloaded filename when using 'date' query
- CSV format
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 google-trends-csv-downloader.