5 examples for youtube-dl

{{ score }}
  # Download just audio (mp3) from youtube 
youtube-dl -x  --audio-format="mp3" "https://www.youtube.com/watch?v=d-diB65scQU"
{{ score }}
  # Download a specific video with youtube-dl
youtube-dl https://www.youtube.com/watch?v=q6EoRBvdVPQ
{{ score }}
  # Download all the videos in a playlist from youtube with youtube-dl
youtube-dl "http://www.youtube.com/playlist?list=PL24AF31F5D9CB3F2A"
{{ score }}
  # List all formats and download just the one you want

# List all formats, note down the code for the format you want
youtube-dl -F 
# Download the video using the code you found above
youtube-dl -f  
{{ score }}
  # Download a whole playlist in specific order
youtube-dl -o "%(playlist_index)s-%(title)s.%(ext)s"