Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joweich/year-in-search-trends
Visualization of search interest over time
https://github.com/joweich/year-in-search-trends
dataisbeautiful python search-trends
Last synced: 6 days ago
JSON representation
Visualization of search interest over time
- Host: GitHub
- URL: https://github.com/joweich/year-in-search-trends
- Owner: joweich
- License: mit
- Created: 2021-12-19T16:41:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T19:47:24.000Z (about 1 year ago)
- Last Synced: 2024-12-26T16:08:37.878Z (13 days ago)
- Topics: dataisbeautiful, python, search-trends
- Language: Python
- Homepage:
- Size: 278 KB
- Stars: 189
- Watchers: 5
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# year-in-search-trends: Visualization of search interest over time
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
---**year-in-search-trends** is just [pytrends](https://github.com/GeneralMills/pytrends) and seaborn's [FacetGrid](https://seaborn.pydata.org/generated/seaborn.FacetGrid.html) 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
```sh
git clone https://github.com/joweich/year-in-search-trends.git
cd year-in-search-trends
pip install -r requirements.txt
```
#### Minimal example
```python
import yearinsearchtrends as yistkeywords = ["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](https://support.google.com/trends/answer/4365538?hl=en) if you use this data source. Neither [pytrends](https://github.com/GeneralMills/pytrends) nor this project are officially supported tools.## Example
![Example](example.png)## Miscellaneous
- [Search category lookup](https://github.com/pat310/google-trends-api/wiki/Google-Trends-Categories)
- [Country code lookup](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)