https://github.com/centre-for-humanities-computing/googletrender
Harnesses pytrends api to be able to compare an infinite amount of keywords.
https://github.com/centre-for-humanities-computing/googletrender
Last synced: 3 days ago
JSON representation
Harnesses pytrends api to be able to compare an infinite amount of keywords.
- Host: GitHub
- URL: https://github.com/centre-for-humanities-computing/googletrender
- Owner: centre-for-humanities-computing
- License: mit
- Created: 2020-04-17T12:16:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T09:35:26.000Z (over 3 years ago)
- Last Synced: 2025-01-03T21:42:02.456Z (over 1 year ago)
- Language: Python
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoogleTrender
Uses the pytrends api to fetch trends and then allows the comparison among a large (theoretically infinite) amount of keywords.
## Usage:
Start by installing requirements.txt
```python
pip3 install -r requirements.txt
```
Trender.py usage:
```python
Usage: Trender.py [options]
Options:
-h, --help show this help message and exit
-i INPUT, --terms=INPUT
txt file with newline separated search terms
-d DATERANGE, --daterange=DATERANGE
The range of dates for which to fetch trend data
-l GEO, --locality=GEO
2 letter locale from whence to fetch the data.
-e, --interactive output interactive plot in browser
-o OUTPUT, --output=OUTPUT
output path for plot
```
The daterange format can be gathered from the original [pytrends](https://github.com/GeneralMills/pytrends) package.
## Future work:
* Interactive and static plots. At present time only interactive plots are active.
* Make into a package