Using the youtube-dl command, it’s really simple.
STEP 1: Copy the URL of the video from your web browser
STEP 2: On the command-line, add the URL between the single quotes and press Enter:
youtube-dl -f best 'URL'
youtube-dl -f best 'https://www.youtube.com/watch?v=rXtGItm1bvQ'
Verify that the video downloaded.
Play the video locally to make sure it downloaded okay
Here’s a video of the process
How do you get youtube-dl installed on your computer?
Instructions vary by operating system.
If you are using MacOS, you probably already have brew installed, so just enter the following command.
brew install youtube-dl
If you don’t have brew installed, install it by following these instructions:
If you are using another operating system, check out the youtube-dl homepage for instructions: