Provides simple data from two types of trends from Google Trends:
- Realtime trends (provided against countries and categories)
- Daily Search Trends (provided against countries)
Because this is based on Selenium, it requires a webdriver. The webdriver chosen for this code is the chromedriver which can be downloaded from here.
Install the following packages using pip:
pip install selenium && pip install bs4
import trends
chromeDirectory = "path/to/chromedriver"
driver = trends.setDriver(chromeDirectory)
# for realtime results
print(trends.getRealtimeTrends(driver, country = "Germany", category = "entertainment"))
# for daily
print(trends.getDailySearchTrends(driver, country = "United Kingdom"))