Simple CLI for downloading youtube videos from the command line.
To set this CLI up, please follow these steps:
-
Clone the repo to your preferred location:
git clone https://github.com/bfrangi/pytube-downloader.git
-
Install
pytube
:pip install pytube
-
Navigate to your home folder:
cd ~
-
Open up your
.bashrc
or.zshrc
file. -
Add the following alias:
alias pytube="python3 /path/to/pytube-downloader/pyTube.py"
-
Restart your terminal
-
Now you can simply use the downloader as:
pytube [url] [output_path]
Use the --help
flag to see usage information.
>>> pytube --help
usage: pyTube.py [-h] [-v] [url] [output_path]
positional arguments:
url
output_path
optional arguments:
-h, --help show this help message and exit
-v, --verbose use this flag to show more information about the download