Skip to content

Instantly share code, notes, and snippets.

@Frankie-B
Forked from philosopherdog/youtube-dl-cheat.txt
Created March 18, 2022 20:31
Show Gist options
  • Save Frankie-B/6eb008d8afc9e4790bd477d67a199aa7 to your computer and use it in GitHub Desktop.
Save Frankie-B/6eb008d8afc9e4790bd477d67a199aa7 to your computer and use it in GitHub Desktop.
youtube-dl cheat sheet
# Basic Download:
youtube-dl URL
# Download Playlist, put in folder, and index with order:
youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' URL
# Download to /$uploader/$date/$title.$ext:
youtube-dl -o '%(uploader)s/%(date)s/%(title)s.%(ext)s' URL
# Download playlist starting from certain video:
youtube-dl --playlist-start 5 example.com/watch?v=id&list=listid
# Simulate download:
youtube-dl -s URL
# List Formats:
youtube-dl --list-formats URL
# Download preferred format get list of formats & use -f flag:
youtube-dl -f 18 URL
# Download a list:
- create a file and place all the YouTube links that you wish to download
youtube-dl -a youtube_links.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment