Skip to content

Instantly share code, notes, and snippets.

@lbrealdev
Last active June 22, 2022 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbrealdev/98e9bdd32b98da7e88dbe25141e5c9e9 to your computer and use it in GitHub Desktop.
Save lbrealdev/98e9bdd32b98da7e88dbe25141e5c9e9 to your computer and use it in GitHub Desktop.
This document contains some commands to use yt-dlp.

yt-dlp

Download the best video quality available:

yt-dlp -f b https://www.youtube.com/$urlvideo

Get all the video quality options available for download:

yt-dlp -F https://www.youtube.com/$urlvideo

Download whole a playlist from youtube:

yt-dlp --extract-audio --audio-format mp3 -i https://www.youtube.com/$urlvideo

Update yt-dlp:

sudo yt-dlp -U

NOTE: Previous software youtube-dl has been discontinued, and currently yt-dlp works correctly.

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