Skip to main content

trendspull

Collect Google Trends timelines as a pandas DataFrame. Up to five terms share one Google comparison; larger sets use G-TAB calibration. Raw values, dates, quality flags and request metadata are preserved.

from trendspull import pull_trends, selected_proportions, plot_trends

data = pull_trends(
    ["wildfire", "smoke", "air quality", "asthma", "inhaler", "cough"],
    start="2021-01-01", end="2025-12-31", geo="US-CA",
)
proportions = selected_proportions(data)  # Terms × dates; each column sums to 1.
figure = plot_trends(data)  # Requires the optional plot extra.

Python 3.11+ is required. Install the plotting extra with python -m pip install 'trendspull[plot]'.

Values measure relative search interest, not search counts. G-TAB's calibrated_value uses the reference term's peak as 1; selected-term proportions have a different denominator at each date. Plots use one common maximum across all supplied terms and dates. Select one geography before using either helper.

Collection uses undocumented Google website endpoints, which can change or block access. Offline tests do not establish live availability. See the README and data contract for options, interpretation and limitations. A separate native R package is in the same repository.

G-TAB calculation: West (2020), Calibration of Google Trends Time Series, doi:10.1145/3340531.3412075.

MIT license. Source and issues: github.com/maxwellkonnaris/googletrends.

Metadata

Release files for trendspull 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trendspull 0.1.0
File Size Uploaded Provenance Actions
trendspull-0.1.0.tar.gz 4.7 MB With provenance Details for trendspull-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trendspull 0.1.0
File Interpreter ABI Platform Actions
trendspull-0.1.0-py3-none-any.whl Python 3 none any Details for trendspull-0.1.0-py3-none-any.whl

Total release size: 4.7 MB

Release files / trendspull-0.1.0.tar.gz

Download URL trendspull-0.1.0.tar.gz
Size 4.7 MB
Tags Source
SHA-256 checksum
How to use checksums
8cd8728b945133224cf3689079b80f2049c2182275dcffa727cf5012ad5c568b
BLAKE2b-256 checksum
How to use checksums
5e3fa55f8deca207938263e1a5d122f36e74cefa73ee960b14f12b8b01af5acc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / trendspull-0.1.0-py3-none-any.whl

Download URL trendspull-0.1.0-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eeaf53922c8a7d4772f8e83fb5a93699bbde56a572bfc95ff97574e06a21ab2e
BLAKE2b-256 checksum
How to use checksums
e01c73b154128b684fbc2130e65d40d6e6d495eb4ae1be3a03cd7dd53a64dd3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for trendspull 0.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for trendspull-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page