Skip to content

Instantly share code, notes, and snippets.

@andriihomiak
Created August 5, 2023 19:34
Show Gist options
  • Save andriihomiak/9ab5c6fe93e1da76d212de7705632c9d to your computer and use it in GitHub Desktop.
Save andriihomiak/9ab5c6fe93e1da76d212de7705632c9d to your computer and use it in GitHub Desktop.
Download the videos from "watch later" playlist using yt-dlp, jq and firefox cookies

Download the watchlist

yt-dlp "https://www.youtube.com/playlist?list=WL" \
  --cookies-from-browser firefox \
  -j --flat-playlist \
  | jq -r '.url' > watch-later.txt

Can be put into a cron job!

Download the videos

cat watch-later.txt | xargs -I{} yt-dlp {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment