Create GUI for Downloading Youtube Video using Python
Prerequisites: Python GUI – tkinter
YouTube is a very popular video-sharing website. Downloading a video’s/playlist from YouTube is a tedious task. Downloading that video through Downloader or trying to download it from a random website which increase’s the risk of licking your personal data. Using the Python Tkinter package, this task is very simple-efficient-safe. Few bunch codes will download the video for you. For this, there are two Python libraries – Tkinterand pytube.
- pytube :pytube is a light-weight, simple-to-use, dependency-free Python library which is used for downloading videos from the web.pytube, is not the auto-configured library. You need to install it before using it. Installation of pytube is easy when you have pip. In the Terminal or Command Prompt, type the following command to install pytube.
If you are on Mac OS X or Linux, chances are that one of the following two commands will work for you:
pip install pytube
git clone git://github.com/NFicano/pytube.git pytube | cd pytube | python setup.py install
If you are on Window’s
pip install pytube3
- Tkinter :Tkinter is a Python binding to the Tk GUI toolkit. It is the standard Python interface to the Tk GUI toolkit or in simple word Tkinter is used for as Python Graphical User interface. Tkinter is the native library, you don’t need to install externally, just import, while you use.
Below is the implementation.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course