Giter Site home page Giter Site logo

manjotms10 / google-trends-analytics Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 0.0 12.75 MB

Course Project for UCSD ECE143: Programming for Data Analytics

License: MIT License

Python 5.58% Jupyter Notebook 94.42%
google-trends predictive-models predictive-analysis data-analytics correlation movies video-games

google-trends-analytics's Introduction

Google Trends Analytics

Course Project for UCSD ECE143: Programming for Data Analytics

Proposal: What Google Trends Tell Us

This study is aimed at analyzing the Google Search trends and correlating them with real-world data. The main idea is to study what Google Search data tells us about the real world. For example, Google search trends can correlate well with the popularity of movies/video games. This correlation from various features will be analyzed and compared to observations from other available sources.

Dataset

  • Google Trend data to be obtained by using Python API
  • Datasets from other sources, depending on specific topics. For example, the popularity of a movie can be ascertained from its box office collection which can be scraped from IMDB or Metacritic websites. For video games, we make use of the VGChartz dataset

Repository Structure

conf - This directory contains the data files that were used/created during the process to store all our data
---- movies - This subdirectory contains the data files for the analysis of movies
---- video_games - This subdirectory contains the data files for the analysis of games

src - This is the source directory containing all our code
---- analytics - This package consists of the code that is used for creating, analyzing and plotting all the data
-------- demo - This package contains the Jupyter notebook that showcases all our plots
-------- movies - This package contains the web scraping and analysis code for movies topic
-------- video_games - This package contains the data processsing and analysis code for video games topic
---- utils - This is a common package that is used by both movies and video games for common processing. For e.g., it consists of code for connecting to the GoogleTrends API, obtaining visualizations and log info and errors

Code Demo:

  • The Jupyter notebook is present under src/analytics.demo package. The code makes use of PyTrends API to connect to Google Search data and returns a Pandas dataframe. This data is then compared to actual sales data obtained by scraping IMDB, in the case of movies, and VGChartz dataset, in the case of video games.
  • All these visualizations can be obtained from the python files as well that are included in the src/analytics.movies/analysis*.py files and src/analytics.video_games/analysis*.py files.
    These script files can be run in the directory that contains them.

Third-party Modules

The following modules were used -
beautifulsoup4-4.8.1, bs4-0.0.1, certifi-2019.9.11, chardet-3.0.4, cycler-0.10.0, idna-2.8, kiwisolver-1.1.0, lxml-4.4.1, matplotlib-3.1.1, numpy-1.17.4, pandas-0.25.3, pkg-resources-0.0.0, pyparsing-2.4.5, python-dateutil-2.8.1, pytrends-4.7.2, pytz-2019.3, requests-2.22.0, six-1.13.0, soupsieve-1.9.5, urllib3-1.25.7

Contributors

google-trends-analytics's People

Contributors

manjotms10 avatar tushardobhal avatar xiaolonghe7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.