• Stars
    star
    178
  • Rank 214,989 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 3 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Visualization of search interest over time

year-in-search-trends: Visualization of search interest over time

License: MIT Code style: black

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.

Example

Example

Miscellaneous