Skip to main content

simple Google Trends API

Project description

google_trends

Simple Google Trends API

Usage:

gtrends(date=None, country='US', language='en-US', timezone='-180')
    '''
    date = date of interest, allowable interval: today - 30 days ago;
    country = two letter country abbreviation;
    timezone = timezone Offset, GMT-7 == -7*60 = '-420',
                                GMT-8 == -8*60 = '-480';
    language = language.
    '''


gtrends()
#realtime trends

gtrends(date=YYYYMMDD)
#trends on a given date, interval: today - 30 days ago.

Example

realtime trends

r = gtrends()
print(r)

trends on date

date = 20210502
r = gtrends(date)
print(r)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

google_trends-0.2-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page