A Python-based application that allows users to download entire YouTube playlists and videos with ease. The script supports automatic setup, private video authentication, and a fully portable experience.
- ✅ Download YouTube videos and playlists 🎥
- ✅ Automatic setup & dependency installation 🔄
- ✅ Choose a custom download folder 📂
- ✅ Automatic FFmpeg detection & merging 🔗
- ✅ Support for private videos (authentication via cookies) 🔑
- ✅ Portable & works on Windows (no manual installation required) 💻
git clone https://github.com/YOUR_USERNAME/youtube-downloader.git
cd youtube-downloader
Just run the script, and it will automatically install all dependencies!
python downloader.py
✅ The script will check for missing dependencies and install them automatically. No need to install anything manually!
- Install the
Get Cookies.txt
Chrome extension:
👉 Download Here - Open YouTube & log in.
- Click the extension & export cookies.
- Save the file as
youtube_cookies.txt
inside the project folder.
✅ Now the script will automatically detect and use the cookies for downloading videos!
- Run the script:
python downloader.py
- Enter the YouTube URL (Video or Playlist).
- Select a folder to save the videos.
- The script will automatically download and merge video + audio.
If your playlist contains private videos, you need to authenticate using browser cookies.
If using Chrome, run:
yt-dlp --cookies-from-browser chrome "https://www.youtube.com/playlist?list=YOUR_PLAYLIST_ID"
For Firefox, use:
yt-dlp --cookies-from-browser firefox "https://www.youtube.com/playlist?list=YOUR_PLAYLIST_ID"
- Install the
Get Cookies.txt
Chrome extension:
👉 Download Here - Open YouTube & log in.
- Click the extension & export cookies.
- Save the file as
youtube_cookies.txt
inside the project folder.
✅ Now the script will automatically detect and use the cookies for downloading private videos!
If you see this error:
ERROR: You have requested merging of multiple formats but ffmpeg is not installed.
Make sure:
- You downloaded FFmpeg 👉 Download Here and placed it in the
ffmpeg/
folder. - The correct structure is:
ffmpeg/bin/ffmpeg.exe
youtube-downloader/
│── downloader.py # Main script
│── ffmpeg/ # FFmpeg folder (bin inside)
│── youtube_cookies.txt # (Optional) Saved cookies for private videos
│── requirements.txt # Dependencies
│── README.md # This file
This project is open-source and available under the MIT License.
🚀 Enjoy downloading your favorite playlists! 🎥💾
If you like this project, star ⭐ it on GitHub! 😊