Code Monkey home page Code Monkey logo

youtube_data_extractor's Introduction

YouTube_data_extractor

Python script for scrapping YouTube video data given url of the videos.

Libraries modules:

- selenium
- pandas 

!pip install selenium

#How to use.

Here is the code in query.py file. Replace your topic (gate 2020) for which you want to extract data and specify no of videos.(here 501) It will go to the YouTube, search for that query and extract data for the first 501 videos.

query = 'gate 2020'           #enter your query for which you want to scrap videos
no_of_videos = 501            #enter number of videos you want to scrap.

Input:

Query and number of videos for which you want to scrap data.

Output:

csv file containing url, Timestamp, Title, Views, upload_date, Likes, Dislikes and Comments.

  • Timestamp: Date and time at which data is extracted

Here I have extracted data for 501 videos for Query - 'gate 2020' and provided in the .csv file.

NOTE: Comments extraction from different urls takes time.

Time taken to complete and number of videos you want to scrap have positive coorelation ..:slightly_smiling_face:

Go Ahead try yourself and contribute to kaggle dataset

Connect with me:

Linkedin

Kaggle

youtube_data_extractor's People

Contributors

g0rav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

pgrtiragg 5l1v3r1

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.