Skip to content

Instantly share code, notes, and snippets.

@thiagoeh
Last active April 17, 2021 14:56
Show Gist options
  • Save thiagoeh/ed786d04a4c65a3e3daa43d6dead5535 to your computer and use it in GitHub Desktop.
Save thiagoeh/ed786d04a4c65a3e3daa43d6dead5535 to your computer and use it in GitHub Desktop.
Some useful youtube-dl commands
pip3 install --user --upgrade youtube-dl
# Download a youtube playlist, only videos newer than 3 months
youtube-dl --dateafter now-3months https://www.youtube.com/playlist?list=PLI1_CQcV71RmeydXo-5K7DAxLsUX6SVhL
# Organizing downloaded files in folders
youtube-dl --output '%(playlist)s/%(playlist_index)s- %(title)s.%(ext)s'"
# Recquires ffmpeg to merge files (fails without error)
youtube-dl "https://www.youtube.com/watch?v=ha5lA4bHhMw" -f 'bestvideo[height<=480]+bestaudio'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment