A clean, modern desktop app for downloading YouTube videos and audio with ease.
- π₯ Download videos in the best quality available
- π΅ Extract audio and save as MP3 files
- π Preview content before downloading
- π Track progress with real-time stats
- π Choose where to save your downloads
Clean and intuitive design featuring:
- Simple URL input
- Video preview with thumbnail
- One-click download buttons
- Live progress tracking
- Custom folder selection
- Python 3.12.6
- FFmpeg (for video processing)
1. Get the code
git clone https://github.com/yourusername/youtube-downloader.git
cd youtube-downloader2. Install FFmpeg
π Click to see installation instructions
Windows:
- Download from ffmpeg.org
- Add to your system PATH
macOS:
brew install ffmpegLinux:
sudo apt install ffmpeg3. Set up Python
# Create virtual environment
python -m venv venv
# Activate it
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
# Install requirements
pip install -r requirements.txt4. Run the app
python main.py- Paste a YouTube URL into the input field
- Click "Fetch Info" to preview the video (optional)
- Choose your download folder (optional)
- Pick your format:
Download Best Video+Audioβ Full video as MP4Download Audio (MP3)β Audio only
- Watch the progress and wait for completion!
- GUI Framework: CustomTkinter (modern UI)
- Download Engine: yt-dlp (reliable & fast)
- Image Processing: Pillow (thumbnails)
- HTTP Requests: requests
youtube-downloader/
βββ main.py # Main application
βββ requirements.txt # Dependencies
βββ README.md # This file
π« "FFmpeg not found" error
- Make sure FFmpeg is installed
- Check it's added to your system PATH
- Restart your terminal after installing
π± Download fails
- Check your internet connection
- Some videos might be private or restricted
- Update yt-dlp:
pip install --upgrade yt-dlp
π₯οΈ GUI doesn't show
- Make sure tkinter is installed (comes with Python)
- On Linux:
sudo apt-get install python3-tk
For personal use only. Please respect:
- YouTube's Terms of Service
- Copyright laws
- Content creators' rights
This tool is for educational purposes. Use responsibly.
Found a bug? Have an idea? Contributions welcome!
- Fork the repo
- Create a branch:
git checkout -b feature-name - Make changes and commit:
git commit -m 'Add feature' - Push:
git push origin feature-name - Open a Pull Request
- Playlist downloads
- Quality selection (4K, 1080p, etc.)
- Download queue
- Dark/light theme toggle
- Subtitle downloads
Need help?
- Check existing issues
- Create a new issue
- Include your OS, Python version, and error details
Made with β€οΈ for the community
β Star this repo β’ π Report bug β’ π‘ Request feature
