renose.blogg.se

Yt downloader gui
Yt downloader gui











yt downloader gui

Inside the function, We are going to use the pytube library and set the video stream quality to high. def Downloader(): url = pytube.YouTube(str(link.get())) video = _highest_resolution() video.download() Label(root, text = ' VIDEO DOWNLOADED', font = 'arial 15').place(x= 180, y = 210) We store the YouTube URL in the string variable.

yt downloader gui yt downloader gui

So, now create a URL input space inside our downloader screen window. To download the YouTube videos, we need the URL of that video. link = StringVar() Label(root, text = 'Paste Youtube Link Here:', font = 'arial 15 bold').place(x= 160, y = 60) link_enter = Entry(root, width = 70,textvariable = link).place(x = 32, y = 90) Here we made the downloader screen interface using the Tkinter library. The dimension of the Youtube downloader screen is 600*400. Then create a window screen for our YouTube downloader. MainFile.py from tkinter import * import pytube root = Tk() root.geometry('600x400') root.resizable(0,0) root.title("Ninza7-youtube video downloader") Label(root,text = 'Youtube Video Downloader', font ='arial 20 bold').pack() Make a python file inside the virtual environment. If you are a windows user then, you can install Tkinter at the time of python installation. To install Tkinter in Linux, you can use the command as shown below. Tkinter is a python package that mainly deals with the GUI part of a python project. To use the “tk” library, you must have Tkinter installed in your system. We are going to use the “pytube” library to download the Youtube videos and the “tk” library to handle the GUI. After activating the virtual environment, let’s install the required python libraries.













Yt downloader gui