youtube-comments-scraper

1.0.0 • Public • Published

Youtube-Comments-Scraper is a nodejs package to fetch comments of youtube video automatically. It currently runs only on windows.

Installation

npm install youtube-comments-scraper

Example

In this example we first import package, then we get the comments of video.

var youtube=require("youtube-comments-scraper");

function get_data(response){
	var data=response["body"]
}
function fetch_comments(){
	youtube.video_comments(get_data)
}
function scroll(){
	youtube.keypress("pagedown",fetch_comments)
}

youtube.open("video url",scroll)

DataKund

datakund is needed for browser automation. As soon as this package is imported in code, automated browser will open up.

Import

var youtube=require("youtube-comments-scraper");

Get comments

youtube.video_comments()

Contact Us

Package Sidebar

Install

npm i youtube-comments-scraper

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.56 kB

Total Files

3

Last publish

Collaborators

  • datakund