Youtube-View-Bot is a nodejs package to watch video on youtube automatically. It currently runs only on windows.
Installation
npm install youtube-view-bot
Example
In this example we first import package, then we watch video till the duration passed.
var youtube=require("youtube-view-bot");
function play(){
youtube.play_pause_video()
}
//duration in seconds e.g. 10,20
youtube.watch_video("video url","duration")
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-view-bot");
Watch video
youtube.watch_video("video url","duration")