This is a command line youtube script to download YouTube video using pytube python module.
Steps 1 & 2 are only required for fresh install.
-
Create new virtual env.
virtualenv -p /usr/bin/python3 ydl or python3 -m venv ydl -
Activate new env.
. ./ydl/bin/activate -
Install pytube module.
pip install pytube -
To run program python ydl.py "url_of_video"