Coder Social home page Coder Social logo

ahmedshahriar / youtube-comment-scraper Goto Github PK

View Code? Open in Web Editor NEW
34.0 1.0 11.0 262 KB

This script will dump youtube video comments to a CSV from youtube video links. Video links can be placed inside a variable or list or CSV

License: Apache License 2.0

Python 5.99% Jupyter Notebook 94.01%
csv scraper scraping youtube-scraper youtube-crawler youtube comment-parser web-scraping web-crawler-python web-crawler

youtube-comment-scraper's Introduction

Parse Comments from Youtube Videos

made-with-python Binder

This script will dump youtube video comments to a CSV from youtube video links. Video links can be placed inside a variable or list or CSV

The script is based on youtube-comment-downloader

It requires pandas and requests modules

To run :

pip install -r requirements.txt

python ytb_comment_scraper.py

By default, the script will download most recent 100 comments

The comments will be dumped to a CSV file

You can set the parameter values as you wish -

COMMENT_LIMIT : How many comments you want to download 

SORT_BY_POPULAR : filter comments by popularity (0 for True , 1 for false)

SORT_BY_RECENT : filter comments by recently posted (0 for True , 1 for false)

Access to kaggle Notebook - Scrape Youtube Comments For Free (No Google API)

youtube-comment-scraper's People

Contributors

ahmedshahriar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

youtube-comment-scraper's Issues

Why its download 100 comments only ?

Hi,

It's a really nice script but, when we run it for a particular video, script is not able to collect total number of comments present for a given video.

It always download approx 100 videos. How can we fix it?

Thanks

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.