Skip to content

MagicalBomb/google-trends-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google-Trends-API

Async Python wrapper for Google Trends API.

Install

pip install git+https://github.com/MagicalBomb/google-trends-api.git

Usage

import asyncio
import datetime
from google_trends_api import GoogleTrendsApi

async def main():    
    api = GoogleTrendsApi(proxies='http://localhost:1234')
    async for timestamp, trends_value in api.get_hourly_data(
        keyword='bitcoin',
        start_datetime=datetime.datetime(2022, 1, 10, 11),
        end_datetime=datetime.datetime(2022, 1, 20, 12),
    ):
        print(timestamp, trends_value)
    await api.aclose()

asyncio.run(main())

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages