Skip to main content

simple Google Trends API

Project description

google_trends

Simple Google Trends API

Install

pip install -U google_trends

Usage:

from google_trends import gtrends

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(YYYYMMDD)
#trends on a given date, interval: today - 30 days ago.

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

google_trends-0.4.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

google_trends-0.4-py3-none-any.whl (3.0 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