"For personal use, no it is not illegal to download YouTube video. But it is immoral."
Read this article for more.
- python 3.8+
- pip
- pytube 10.4.1
- Clone this repository using
git clone
command (or just download thezip
version). - Install pytube using
pip
.$ pip install pytube
- Inside this project directory run
$ python yutub.py
- Copy & paste the YouTube URL
-
Download Path
The default Dowload path is set to
$home/Downloads/Videos
.To change this you can simply configure the
file_path()
functiondef file_path(): ... download_path = os.path.join(home, '$YOUR_PATH') ...
-
Tips
Make an alias in your shell / bash to make it more flexible, for example in my zsh#! $home/.zshrc alias your-alias="python /dir/to/this/project/yutub.py"
Restart the shell and run
$ your-alias
As you can see Yutub Downloader is under MIT License