This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
youtube-dl [2021/12/02 22:21] – created vissie | youtube-dl [2022/09/10 01:13] (current) – vissie | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====Install and setup===== | + | ===== Install ===== |
- | sudo wget https:// | + | |
+ | < | ||
+ | sudo pip3 install yt-dlp | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | yt-dlp --rm-cache-dir -f bestvideo+bestaudio https:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Install and setup (old) ===== | ||
+ | |||
+ | < | ||
+ | sudo wget https:// | ||
+ | |||
+ | </ | ||
After fetching the file, you need to set a executable permission on the script to execute properly. | After fetching the file, you need to set a executable permission on the script to execute properly. | ||
- | | + | |
+ | < | ||
+ | sudo chmod a+rx / | ||
+ | |||
+ | </ | ||
Once installed, you can update it to the latest version using this command. This is helpful when you have been using it for a few months: | Once installed, you can update it to the latest version using this command. This is helpful when you have been using it for a few months: | ||
- | | + | |
- | Using YouTube-dl for downloading videos: | + | < |
- | To download a video file, simply run the following command. Where “VIDEO_URL” is the URL of the video that you want to download. | + | youtube-dl -U |
- | youtube-dl < | + | |
+ | </ | ||
+ | |||
+ | Using YouTube-dl for downloading videos: To download a video file, simply run the following command. Where “VIDEO_URL” is the URL of the video that you want to download. | ||
+ | |||
+ | < | ||
+ | youtube-dl < | ||
+ | youtube-dl -f bestvideo+bestaudio "link to youtube video" | ||
+ | yt-dlp -f bestvideo+bestaudio -x --audio-format mp3 https:// | ||
+ | </ | ||
+ |