DailyTrends 6.0
A lightweight API to get full-range daily Google Trends data. Solves the problem of getting only monthly-based data for large time series. No login required.
Installation
pip install DailyTrends
Or with uv:
uv add DailyTrends
Quick Start
from DailyTrends import collect_data
data = collect_data("AMD stock", start="2004-01-01", end="2024-07-06",
geo="", save=False, verbose=False)
data.info()
# <class 'pandas.core.frame.DataFrame'>
# DatetimeIndex: 7493 entries, 2004-01-01 to 2024-07-06
# Freq: D
# ...
- The returned DataFrame is datetime-indexed and ready for storage/analysis.
enddefaults to"TODAY".startdefaults to"2004-01-01".geodefaults to""(worldwide). Use country codes like"US","DE".
Plotting
ax = data.rolling(10).mean().plot()
data.rolling(25).mean().plot(ax=ax)
data.rolling(50).mean().plot(ax=ax)
Multiple Queries
data = collect_data(["Intel", "AMD"], start="2004-01-01", end="TODAY",
geo="DE", save=False, verbose=False)
Combine with Your Own Data
import pandas as pd
price_data = pd.read_csv("price_data.csv")
merged = pd.merge(price_data, data, left_index=True, right_index=True)
merged[["AMD stock: (Worldwide)", "Open"]].rolling(30).mean().plot()
Development
This project uses uv for dependency management.
# Clone and set up
git clone https://github.com/le0x99/DailyTrends.git
cd DailyTrends
uv sync
# Run tests
uv run pytest -v
# Run linter
uv run ruff check .
# Build the package
uv build
Disclaimer
This API is not supported by Google and is for experimental purposes only.
Metadata
Release files for DailyTrends 6.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dailytrends-6.0.0.tar.gz | 754.1 kB | Without provenance | Details for dailytrends-6.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dailytrends-6.0.0-py3-none-any.whl | Python 3 | none | any | Details for dailytrends-6.0.0-py3-none-any.whl |
Total release size: 761.2 kB
Release files / dailytrends-6.0.0.tar.gz
| Download URL | dailytrends-6.0.0.tar.gz |
|---|---|
| Size | 754.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d106cd973eb0bb6ce2b30dc636cda785f2316e0614874f805b948ed66c25a94d
|
|
BLAKE2b-256 checksum How to use checksums |
72ab9d38f6135a720f48f6ca91dece0efb64617267424331a2ff117df33a2eae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / dailytrends-6.0.0-py3-none-any.whl
| Download URL | dailytrends-6.0.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e93a8249d81a75780329d025b74a52881ac37279069df869316de88380e150ef
|
|
BLAKE2b-256 checksum How to use checksums |
7fedb5f13625e552bed7d680c67d88ccfc90e715b24279eb7858abb32f6c7ec3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for DailyTrends 6.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.