Skip to content

Tenzinomics/Google-Search-Index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Google-Search-Index

Google Search Index (GSI) pulls data from google trend and creates a search index for a topic of the users choice.

Note that the project is still being worked on so this is not the final verion yet.

To use the GSI please follow these steps:

  Step 1. Download Google trend API and matplotlib or simply uncomment the fist two lines in the GSI.py file:

  > !pip install pytrends
  > !pip install matplotlib

  Step 2.Import:
  > import GSI
  > import matplotlib.pyplot

  Note: for ease of use put the GSI.py file in the same folder as the file you are calling the GSI from.

  Step 3. Use the following command to use the search index:
  > GSI.search_index_tinator( 'your search term' , ['google location code'] , model selection )



The idea was to have different set of models to create the search index ie. model selection = 1. for PCA, 2. weighted average etc. However, only PCA works for now, and im still making improvements to the model interms of dealing with surge in search level in short periods and low volume search data... but If you have any ideas or suggestions with google data transformation im all ears!

Do take a look at the GSI example.ipynb file if you want to get an idea of how the search index works.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published