Skip to content

Instantly share code, notes, and snippets.

@philosopherdog
Created March 21, 2017 13:08
Show Gist options
  • Save philosopherdog/fe02c7f8734a5034851905b30dcce61c to your computer and use it in GitHub Desktop.
Save philosopherdog/fe02c7f8734a5034851905b30dcce61c 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
Copy link

ghost commented May 6, 2022

arigato asaiyo, kosaima su

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment