Skip to content

Scrapes Google Trends data over long timescales and stitches together for daily data

Notifications You must be signed in to change notification settings

MikeMaxNow/trendy-scraper

This branch is up to date with clintonboys/trendy-scraper:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7e86f82 · Jan 17, 2020

History

10 Commits
Mar 18, 2015
Feb 18, 2017
Feb 24, 2017
Mar 18, 2015
May 21, 2018

Repository files navigation

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.

About

Scrapes Google Trends data over long timescales and stitches together for daily data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%