This script will take the link of the video as an argument in the command prompt and directly start downloading the video at the highest resolution.
Note: 1080p takes a lot of time compared to 720p. (Not recommended for large videos)
Clone the project
git clone https://github.com/avs-7955/yt-vid-download.git
Go to the project directory
cd yt-vid-download
Run the script
python main_<resolution>.py <videolink>
Example: Downloading the video "The art of focus – a crucial ability | Christina Bengtsson | TEDxGöteborg" at 720p.
python main_720p.py https://www.youtube.com/watch?v=xF80HzqvAoA
The download starts.