π¬ YouTube Video Downloader (Python GUI)
A simple Python-based YouTube Video Downloader that allows users to download high-quality MP4 videos using a clean file selection dialog.
This project is a lightweight desktop utility built using:
π Python
π₯ pytube for YouTube video downloading
π₯ tkinter for folder selection dialog
Users can:
Enter a YouTube video URL Choose a download directory Automatically download the video in the highest available MP4 resolution
π Features
β Download YouTube videos in highest available resolution β Simple terminal-based interaction β Folder selection via GUI dialog β Error handling for invalid links or download issues β Lightweight and beginner-friendly codebase
π Technologies Used
Python 3.x
pytube
tkinter (built-in with Python)
βοΈ Installation 1οΈβ£ Clone the repository git clone https://github.com/your-username/youtube-downloader.git cd youtube-downloader
2οΈβ£ Install required dependency pip install pytube
tkinter comes pre-installed with standard Python distributions.
Then:
Enter the YouTube video URL
Select a folder using the file dialog
The video will download automatically
π‘ Example Workflow Please enter a YouTube url: https://youtube.com/... Started download... Video downloaded successfully!
π Error Handling
The program handles:
Invalid YouTube URLs
Network issues
Invalid save location
Download interruptions
Errors are printed to the terminal for debugging.
π Future Improvements
Add download progress bar
Add resolution selection option
Convert to full GUI app (with buttons & input fields)
Add audio-only download option
Add playlist download support
π¨βπ» Author
Yash Brahmankar