Skip to content

danielzlatanov/youtube-watch-later-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yt-wl-scraper-logo

youtube watch later scraper

scrape your watch later playlist in seconds for easy sorting and organization

📖 Quick Guide

  1. Clone the Repo
    git clone https://github.com/danielzlatanov/youtube-watch-later-scraper.git
    
    cd youtube-watch-later-scraper
    
  2. Install Dependencies
    npm install
    
  3. Start the Script
    npm start
    

This will launch Chromium in visible (non-headless) mode and navigate to YouTube.

  1. YouTube Manual Login

Once the terminal shows the message 'Log in manually in the browser, then press Enter in the terminal', go to the Chromium browser (installed by Puppeteer) for testing, log into your YouTube account, and return to the terminal.

Press Enter to continue the automation script.

  1. Progress Tracking

You can track the progress in the terminal as the script scrolls through your YouTube playlist. This is optional, but the terminal log will show updates, and it’s not really necessary to watch the loading process on YouTube.

Stopping the Script

You can stop or exit the script at any time by pressing Ctrl + C in the terminal.

  1. Final Output

After the progress bar finishes, the script will log the total extracted videos and the location of the output file.

The .xlsx file will be saved in the output folder in the root directory as scrapeWatchLater_sorted_{date}_{time}.xlsx

  1. View the File

Open the sorted & styled Excel file with Google Sheets or Microsoft Excel and enjoy!

📽️ Demo

3x.mp4