from tkinter import *
from pytube import YouTube

# Initializing tkinter
root = Tk()
root.geometry("400x350")
root.title("Youtube Video Downloader")

# Definition of the download function
def download():
    try:
        dl.set("Dowloading...")
        root.update()
        YouTube(link.get()).streams.first().download()
        link.set("Video Downloaded successfully")
    except Exception as e:
        dl.set("Mistake")
        root.update()
        link.set("Enter correct link")

# Created the label to welcome user
Label(root, text="Welcome to Youtube downloader", font="Consolas 15 bold").pack()
dl = StringVar()
dl.set("Enter the link below")
Entry(root, textvariable=dl, width=10).pack(pady=10)
link = StringVar()
Entry(root, textvariable=link, width=40).pack(pady=10)
Button(root, text="Download", command=download).pack()
root.mainloop()

print("toto")

ce544a07244a24f7ccb0a7c971a5854b337b9cbf
<mask token>


def download():
    try:
        dl.set('Dowloading...')
        root.update()
        YouTube(link.get()).streams.first().download()
        link.set('Video Downloaded successfully')
    except Exception as e:
        dl.set('Mistake')
        root.update()
        link.set('Enter correct link')


<mask token>

<mask token>
root.geometry('400x350')
root.title('Youtube Video Downloader')


def download():
    try:
        dl.set('Dowloading...')
        root.update()
        YouTube(link.get()).streams.first().download()
        link.set('Video Downloaded successfully')
    except Exception as e:
        dl.set('Mistake')
        root.update()
        link.set('Enter correct link')


Label(root, text='Welcome to Youtube downloader', font='Consolas 15 bold'
    ).pack()
<mask token>
dl.set('Enter the link below')
Entry(root, textvariable=dl, width=10).pack(pady=10)
<mask token>
Entry(root, textvariable=link, width=40).pack(pady=10)
Button(root, text='Download', command=download).pack()
root.mainloop()
print('toto')

<mask token>
root = Tk()
root.geometry('400x350')
root.title('Youtube Video Downloader')


def download():
    try:
        dl.set('Dowloading...')
        root.update()
        YouTube(link.get()).streams.first().download()
        link.set('Video Downloaded successfully')
    except Exception as e:
        dl.set('Mistake')
        root.update()
        link.set('Enter correct link')


Label(root, text='Welcome to Youtube downloader', font='Consolas 15 bold'
    ).pack()
dl = StringVar()
dl.set('Enter the link below')
Entry(root, textvariable=dl, width=10).pack(pady=10)
link = StringVar()
Entry(root, textvariable=link, width=40).pack(pady=10)
Button(root, text='Download', command=download).pack()
root.mainloop()
print('toto')

from tkinter import *
from pytube import YouTube
root = Tk()
root.geometry('400x350')
root.title('Youtube Video Downloader')


def download():
    try:
        dl.set('Dowloading...')
        root.update()
        YouTube(link.get()).streams.first().download()
        link.set('Video Downloaded successfully')
    except Exception as e:
        dl.set('Mistake')
        root.update()
        link.set('Enter correct link')


Label(root, text='Welcome to Youtube downloader', font='Consolas 15 bold'
    ).pack()
dl = StringVar()
dl.set('Enter the link below')
Entry(root, textvariable=dl, width=10).pack(pady=10)
link = StringVar()
Entry(root, textvariable=link, width=40).pack(pady=10)
Button(root, text='Download', command=download).pack()
root.mainloop()
print('toto')

from tkinter import *
from pytube import YouTube

# Initializing tkinter
root = Tk()
root.geometry("400x350")
root.title("Youtube Video Downloader")

# Definition of the download function
def download():
    try:
        dl.set("Dowloading...")
        root.update()
        YouTube(link.get()).streams.first().download()
        link.set("Video Downloaded successfully")
    except Exception as e:
        dl.set("Mistake")
        root.update()
        link.set("Enter correct link")

# Created the label to welcome user
Label(root, text="Welcome to Youtube downloader", font="Consolas 15 bold").pack()
dl = StringVar()
dl.set("Enter the link below")
Entry(root, textvariable=dl, width=10).pack(pady=10)
link = StringVar()
Entry(root, textvariable=link, width=40).pack(pady=10)
Button(root, text="Download", command=download).pack()
root.mainloop()

print("toto")
