We all know Youtube is a free video sharing website that makes it easy to watch online videos. Downloading video’s from YouTube is a tedious task. But using the Python Tkinter package, this task is very simple. Few bunch codes will download the youtube video in root folder. User need to paste the youtube URL to download the video. A default mp4 extension is set to save the download. Also, user can press the autodownload button which will take the youtube URL from API and download the video with the name of ID name and mp4 extesnion in root folder.
-
Tkinter: Tkinter is a standard library in Python which is used for GUI application. To check the Tkinter, we just need to import it in the text editor or IDE to access its functions.
-
Requests: Requests library is the de facto standard for making HTTP requests in Python.
-
Pytube: pytube is a lightweight, Pythonic, dependency-free, library (and command-line utility) for downloading YouTube Videos.
- If in case you don't have python setup in ur computer ,download it by click here
- Clone this repo to your machine. If you need help with this part, GitHub has great documentation.
- Now run the command 'pip install -r requirements.txt' to install the required packages.
- In the
UtubeDownloader/
directory, run the commandpython main.py
- Now paste the url in input field and specify name of file or extension to save the youtube video.
I have done this whole Project in Visual Studio code. if you don't have Visual Studio code setup in ur computer ,download it by clicking here