GithubHelp home page GithubHelp logo

rishab-sharma / youtube-data-extraction-and-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shrebox/youtube-data-extraction-and-analysis

1.0 0.0 0.0 64 KB

Collect data using Youtube API v3 and analyse using Google Charts.

HTML 55.62% Python 44.38%

youtube-data-extraction-and-analysis's Introduction

PreCog-Task

1. Data extraction using the search_keyword.py script:

Using the Youtube API v3, data has been extracted for a particular keyword by giving command-line parameters. I have collected data for ~500 videos for a particular keyword (in my case "ted").

The data extracted includes video's "title","description","videoId","viewCount","likeCount","dislikeCount","commentCount" and channel's "channelTitle","viewCount","commentCount","subscriberCount". As youtube allows only 25 results/page, I have used pagination using the "nextPageToken" to get the next page results.

To use the script, in terminal run the following command: $ python search_keyword.py --q keyword_to_search

2. Webapp for the data analysis:

Data collected in part 1 has been analysed using the Google Charts. To check the webapp, open it on a browser or host it on local server using the following command in the directory where the analysis.html is located: $ python -m SimpleHTTPServer. This would host the webapp on the local server on the address "localhost:8000". Page is also hosted on: https://youtube-analysis-precogtask.herokuapp.com/.

3. Predicting the number of likes on a YouTube video URL one can input:

This task has to be done for the collected data.

youtube-data-extraction-and-analysis's People

Stargazers

 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.