A simple command-line tool to download YouTube videos or entire playlists.
-
Python 3
-
pytube
pip install pytube
-
tqdm
pip install tqdm
-
Clone the repository:
git clone https://github.com/Bardia0/Youtube_Downloader.git cd Youtube_Downloader
python3 youtube_downloader.py <youtube-video-url>
python3 youtube_downloader.py --quality 720 <youtube-video-url>
python3 youtube_downloader.py --playlist "<youtube-playlist-url>"
Notice that the playlist url should be something like below
https://youtube.com/playlist?list=<some-queries>
or
https://www.youtube.com/playlist?list=<some-queries>
use help option as below
python3 youtube_downloader.py --help
the options are
--quality
or -q
: to Specify video quality (e.g., 720)
and
--playlist
or -p
: to download entire YouTube playlist