YouTube video downloader with easy-to-use CLI interface.
git clone https://github.com/endgtryna/YT-Downloader.git
cd YT-Downloaderpython setup.py./setup.shOr use Python setup (works on all platforms):
python3 setup.pyThe setup script will:
- Create virtual environment
- Install dependencies
- Setup Node.js environment
- Create launcher
Linux/Mac: Reload terminal
source ~/.bashrc # or ~/.zshrcWindows: Restart terminal to use yt-downloader command
yt-downloaderThe program supports two modes:
Download one video by entering the URL directly.
Download multiple videos using a txt file containing a list of URLs.
File format for bulk download:
https://youtube.com/watch?v=video1
https://youtube.com/watch?v=video2
https://youtube.com/watch?v=video3
Important notes for bulk mode:
- Create a
.txtfile with YouTube URL list - Each URL separated by enter (one URL per line)
- No spaces or additional characters
- Make sure all URLs are valid
Example playlist.txt file:
https://www.youtube.com/watch?v=dQw4w9WgXcQ
https://www.youtube.com/watch?v=oHg5SJYRHA0
https://www.youtube.com/watch?v=iik25wqIuFo
- Video: MP4
- Audio: MP3
yt-dlp: Core YouTube downloaderimageio-ffmpeg: Video processingrich: CLI interface stylingnodeenv: Node.js environment
sudo apt update
sudo apt install python3 python3-venvchmod +x yt-downloader
chmod +x setup.shexport PATH="$HOME/.local/bin:$PATH"python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python3 yt-downloader