youtube-dl¶
Install¶
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
or using pip
sudo pip install --upgrade youtube_dl
Update/Upgrade¶
sudo pip install --upgrade youtube_dl
Basic commands¶
Get possible formats¶
youtube-dl -F <url>
Download specific format¶
youtube-dl -f <format-string> <url>
Download mp3 with 320k bit¶
yt-dlp -f bestaudio -x --audio-format mp3 --audio-quality 320k "URL"