Skip to content

Instantly share code, notes, and snippets.

@im-vicky
Forked from philosopherdog/youtube-dl-cheat.txt
Created March 1, 2020 15:51
Show Gist options
  • Save im-vicky/e091deb8c083210c47baad1fd918dad2 to your computer and use it in GitHub Desktop.
Save im-vicky/e091deb8c083210c47baad1fd918dad2 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