Skip to content

saadejazz/trends

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google trends crawler

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.

Requirements

Install the following packages using pip:

pip install selenium && pip install bs4

Usage:

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"))

Releases

No releases published

Packages

No packages published

Languages