A simple, user-friendly command-line tool to download individual YouTube videos or entire playlists in the highest available resolution using pytubefix
.
- β Download single videos in highest resolution.
- β Download entire playlists with organized folder structure.
- β Progress feedback during download.
- β Simple CLI interface.
- β Cross-platform support.
Follow the steps below to clone, install, and run this project.
git clone https://github.com/Ai-Chetan/youtube-downloader.git
For Windows
python -m venv venv
venv\Scripts\activate
For macOS/Linux
python3 -m venv venv
source venv/bin/activate
- Make sure you have Python 3.7+ installed.
- Then run following command in the terminal
pip install -r requirements.txt
Run the script from the terminal:
python youtube-downloader.py
You'll be prompted to:
- Enter the YouTube video or playlist URL.
- Specify an output directory (or press Enter for current directory).
- The program will automatically detect whether it's a single video or a playlist and proceed accordingly.
Download a Single Video
π Enter the YouTube video or playlist URL: https://www.youtube.com/watch?v=abcd1234
π Enter output directory (leave blank for current folder):
Download a Playlist
π Enter the YouTube video or playlist URL: https://www.youtube.com/playlist?list=PLxyz...
π Enter output directory (leave blank for current folder):
Developed by Chetan Chaudhari.