A simple GUI built using Tkinter and pytube for downloading videos from YouTube.
NOTE: This is meant to be used for educational purposes only.
-
This is an external library and can be installed using the command
pip install pytube
. -
This is an external library and can be installed using the command
pip install customtkinter
. -
This library comes bundled with Python! 😄
-
Clone this repository in your desired directory.
-
Run the command:
python python_youtube_downloader.py
and a simple GUI will pop-up:
-
It will take some time to download the video depending on the video size, video quality and your network connectivity. The downloader looks for the best possible video quality and downloads that for you. 😉
-
After the download is complete, a dialog with a message will pop-up:
NOTE: If you enter an invalid link, the following error message will show up:
- You can access the exe from here.
- Download the entire folder and navigate to the dist folder.
- Inside the python_youtube_downloader folder, look for python_youtube_downloader.exe. Double-click on it to run the application.
If you come across pytube.exceptions.RegexMatchError: Exception, then please refer to this issue.