youtube-video-comment-replies-scraper

1.0.0 • Public • Published

youtube-video-comment-replies-scraper is a nodejs package to fetch video comment replies on youtube using browser automation. It currently runs only on windows.

Installation

npm install youtube-video-comment-replies-scraper

Example

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

var youtube=require("youtube-video-comment-replies-scraper");

function get_data(response){
	var replies_data=response["body"]
}
function get_replies(){
	youtube.get_comment_replies(get_data)
}
function show_more(){
	youtube.click_show_more_replies(get_replies)
}
function open_replies(){
	youtube.click_view_replies('comment text',show_more)
}
function scroll(){
	youtube.keypress("pagedown",open_replies)
}
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-video-comment-replies-scraper");

Open video

youtube.open("video url")

Load comments

youtube.keypress("pagedown")

Click on view replies

youtube.click_view_replies("comment text whose replies need to fetch")

Get Replies

youtube.get_comment_replies()

Contact Us

Package Sidebar

Install

npm i youtube-video-comment-replies-scraper

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

2.07 kB

Total Files

3

Last publish

Collaborators

  • datakund