Giter VIP home page Giter VIP logo

Comments (12)

ggjj11 avatar ggjj11 commented on July 29, 2024

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.

pedrofaustino avatar pedrofaustino commented on July 29, 2024

Which page?

from google-trends-csv-downloader.

ggjj11 avatar ggjj11 commented on July 29, 2024

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.

adamchapman avatar adamchapman commented on July 29, 2024

I still hit a quota limit when using the method ggjj11 linked. Is anybody else experiencing similar problems?

from google-trends-csv-downloader.

ggjj11 avatar ggjj11 commented on July 29, 2024

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.

adamchapman avatar adamchapman commented on July 29, 2024

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.

ggjj11 avatar ggjj11 commented on July 29, 2024

Great. Thank you for pointing out this tool 👍

from google-trends-csv-downloader.

adamchapman avatar adamchapman commented on July 29, 2024

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.

eawtrey avatar eawtrey commented on July 29, 2024

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.

adamchapman avatar adamchapman commented on July 29, 2024

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.

simonavril avatar simonavril commented on July 29, 2024

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.

pedrofaustino avatar pedrofaustino commented on July 29, 2024

Closing this ticket after merging @simonavril PR (commit 93e629a).

from google-trends-csv-downloader.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.