From 164cca6467ebdb8c473decba885c013d68e29afa Mon Sep 17 00:00:00 2001 From: Amul Rathore <71003626+amul-code@users.noreply.github.com> Date: Tue, 5 Oct 2021 17:13:57 +0530 Subject: [PATCH] youtube_downloader,py --- Python/YouTube_Downloader.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Python/YouTube_Downloader.py diff --git a/Python/YouTube_Downloader.py b/Python/YouTube_Downloader.py new file mode 100644 index 00000000..69180bbb --- /dev/null +++ b/Python/YouTube_Downloader.py @@ -0,0 +1,22 @@ +from tkinter import * +from pytube import YouTube + +# filename_s = input("Please Enter Your File Name To Save:-") +root = Tk() +root.geometry('500x300') +root.resizable(0,0) +root.title("@MuL's video downloader") + +Label(root,text = 'Youtube Video Downloader', font ='arial 20 bold',bg = 'yellow').pack() +link = StringVar() +Label(root, text = 'Paste Link Here:', font = 'arial 15 bold',bg = 'Red').place(x= 160 , y = 60) +Label(root, text = '@Mul Video Downloader', font = 'arial 12 bold',bg = 'blue').place(x= 140 , y = 40) +link_enter = Entry(root, width = 70,textvariable = link).place(x = 32, y = 90) +def Downloader(): + url =YouTube(str(link.get())) + video = url.streams.first().download(output_path = "D:\\Video's") + + video.download() + Label(root, text = 'DOWNLOADED', font = 'arial 15',bg = 'purple').place(x= 180 , y = 210) +Button(root,text = 'DOWNLOAD', font = 'arial 15 bold' ,bg = 'green', padx = 2, command = Downloader).place(x=180 ,y = 150) +root.mainloop()