scrape your watch later playlist in seconds for easy sorting and organization
- Clone the Repo
git clone https://github.com/danielzlatanov/youtube-watch-later-scraper.git cd youtube-watch-later-scraper
- Install Dependencies
npm install
- Start the Script
npm start
This will launch Chromium in visible (non-headless) mode and navigate to YouTube.
- 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.
- 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.
You can stop or exit the script at any time by pressing Ctrl + C
in the terminal.
- 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
- View the File
Open the sorted & styled Excel file with Google Sheets or Microsoft Excel and enjoy!