To implement this project I use the basic concept of python
, Tkinter
and pytube
libraries.
* Tkinter is a standard GUI library and it is one of the easiest way to build GUI application
* Pytube used for download the videos from Youtube
The structure of the main code is given below
- import libraries
- Create display window
- Create field to enter link
- Create function to start downloading
-
Import the libraries: Start project by importing the below required modules
import tkinter as tk from pytube import YouTube
-
Tkinter
informationTK()
: is used to initialized the tkinter to create a displaygeometry
: is used to set the window width and heightresizable
: set the fix size of window.title
: used to give the tile of the window.
``` Label(root,text = 'Youtube Video Downloader', font ='arial 20 bold').pack() ``` * `Label()` widget use to display text that users can’t able to modify. * `root` is the name of the window * `text` which we display the title of the label * `font` in which our text is written * `pack` organized widget in block
To run this project, go to src
folder and run below command,
python main.py