This project helps in automation of taking screenshots of a youtube video being played and automatically compile them in word document in series of their capture.
- Take SS of a given video link
- COMMAND :
node youtube -s "Search_Anything" Time_Interval_Between_SS "File_Name"
- COMMAND :
- Take SS of a whole playlist of videos (serial)
- COMMAND :
node youtube -l "Link_Of_The_Video" Time_Interval_Between_SS "File_Name"
- COMMAND :
- If you aren't sure about which video to pick, you can simply enter the search you want to make, just like a normal youtube search, it will automatically go to YouTube and search for the given keywords and bring back the SS of the 1st video.
- COMMAND :
node youtube -p "Link_Of_The_Playlist" Time_Interval_Between_SS "File_Name"
- COMMAND :
- Take SS of a playlist of videos parallely, 5 tabs(videos) will be opened simultaneously.
- COMMAND :
node youtube -pParallel "Link_Of_The_Playlist" Time_Interval_Between_SS "File_Name"
- COMMAND :
-
Clone this respository on your system.
-
Open the root folder of the project in the terminal and install the required dependencies* by using the following command:
npm install
Puppeteer will install chromium which is of 150 mb approx. -
Navigate to the
fair\activity
folder . -
Open the
example.txt
file to get an example of list of commands available or you can check out this video . -
You can choose any of the commands written in
example.txt
file. -
A Chromium browser window will open and the search will take place automatically and the first video in search will be selected.
-
Video will run in full screen mode(not for parallel) screenshots will be taken at 30s interval (by default)or you can specify any value.
-
You are free to change tabs using alt+tab and wait for video to finish.
-
Once the video is over the screenshots will be added to a word document file in same folder with your given name.
- Allow access to chromium if your anti-virus interrupts.
- Make sure the word document is not open(if a file with the given name already exists) before running any command.
- For Parallel Screenshots you need to change to every tab that is opened automatically and wait for the vid to start.
- Youtube ads are annoying no doubt, so you can use a browser with inbuilt ad blocker functionality like
Brave
or you'll have to skip ads manually.