Scrapes Google Trends data over long timescales and stitches together for daily data
Switch branches/tags
Nothing to show
Clone or download
Latest commit 518fd96 Feb 24, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.DS_Store committing v 1.0 Mar 18, 2015
.gitignore small bugs Feb 18, 2017
README.md Update README.md Feb 24, 2017
gt_scraper.py committing v 1.0 Mar 18, 2015
gt_scraper_v2.py new version Feb 18, 2017

README.md

Trendy scraper

This script, written in Python, scrapes Google trends for a certain keyword over a long timescale. Since Google trends only outputs weekly data for periods longer than a few months, it also pulls daily data for small periods throughout the full period and then stitches them together, rescaling for consistency.

This is a new version of the scraper, developed in February 2017 after changes to the API behind the scenes meant the initial version (still available as gt_scraper.py) was deprecated.

Usage

Run as

python gt_scraper_v2.py 2016-01-01 2017-02-18 donald trump

Dependencies

  • Python 2.7
  • pandas

Note

Please do not use for any purposes that will violate Google's terms of use.