year-in-search-trends: Visualization of search interest over time
year-in-search-trends is just pytrends and seaborn's FacetGrid with some extra steps. The keywords are preselected and normalized to visualize different orders of magnitude of search interest in the same chart.
Usage
Get source code and dependencies
git clone https://github.com/joweich/year-in-search-trends.git
cd year-in-search-trends
pip install -r requirements.txt
Minimal example
import yearinsearchtrends as yist
keywords = ["Weather Forecast", "TV Program"]
df = yist.get_interest_over_time(
keywords, "2022-01-01 2023-01-01"
)
yist.draw_ridgeplot(df)
Data source
Data is retrieved from https://www.google.com/trends. You have to comply with Google's Terms of Service if you use this data source. Neither pytrends nor this project are officially supported tools.