Download long-term Google Trends
Project description
longtrends
A package to download long-term Google Trends.
Introduction
Google Trends, downloadable by API using pytrends, limits the time period which can be downloaded using a single request. Each request is scaled between 0 and 100, making comparison between different time periods difficult. This package automatically downloads overlapping trends and rescales them, providing trend data across a long-term period.
Installation
pip install longtrends
Requirements
Requires pytrends, installed automatically with pip
.
Usage
from longtrends import rescale_overlaps, get_overlapping_trends
from datetime import datetime, timedelta
google = get_overlapping_trends(
keyword='google',
start_date=datetime(2021, 1, 1),
end_date=datetime(2021, 1, 31),
days_delta=30)
google_rescaled = rescale_overlaps(google)
google_rescaled.plot()
Disclaimer
This is not an official or supported product. It is provided without warranty under MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file longtrends-0.2.tar.gz
.
File metadata
- Download URL: longtrends-0.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdc755d68babdb3457476e597611a4e474c182ee13dda7d2e0f15822b9b510de |
|
MD5 | 48d3ca2ad1925538e26bcebce39a0e9c |
|
BLAKE2b-256 | b40efaee66d7a850f2492d3498d0fcfeac2e6ab9b20dbcbdfcaa4f9e77119eb1 |
File details
Details for the file longtrends-0.2-py3-none-any.whl
.
File metadata
- Download URL: longtrends-0.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 373eb44817769b87525bda0c1a37fb10da12ab0c480b3325668cf1df38e1e9cc |
|
MD5 | fbe38ed1f711b0f9acff840cdd24ebe1 |
|
BLAKE2b-256 | 073eb35733bf036821d98fb348a996379ce835ad9cdc5abc8b3e001185f09451 |