Skip to content

Instantly share code, notes, and snippets.

@aaronsaderholm
Created October 17, 2018 03:05
Show Gist options
  • Save aaronsaderholm/b1ae93366b72f2fc78cef6d32b1caed9 to your computer and use it in GitHub Desktop.
Save aaronsaderholm/b1ae93366b72f2fc78cef6d32b1caed9 to your computer and use it in GitHub Desktop.
youtube-dl a playlist
#!/usr/bin/env bash
# pip install youtube-dl
# This will only download the videos you have not already downloaded so you can run it nightly.
# Add "-x --audio-format mp3" to produce MP3s - but it will run the conversion every time you run the script.
youtube-dl \
-icw \
--write-description \
--write-info-json \
--write-annotations \
--restrict-filenames \
--output video_folder/%(title)s_%(id)s.%(ext)s" \
"https://www.youtube.com/playlist?list=YOUR_PLAY_LIST_HERE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment