The Pytrends package provides an easy way to obtain data from Google Trends. This package, pytrendsdaily
, uses the functionality from Pytrends
to obtain data from Google Trends at the daily frequency, automatically dealing with scaling issues.
The main functionality of this package is available via the function getDailyData
.
from pytrendsdaily import getDailyData
svi = getDailyData('GOLD PRICES', 2004, 2017)
The variable svi
contains a Pandas data frame with the original unscaled search volume index (SVI) from Google Trends, and also the scaled data at the daily frequency.