Skip to content

Commit 5fd989f

Browse files
authored
YouTube Video Downloader
1 parent e56b388 commit 5fd989f

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

YoutubeDownloader/Capture.PNG

8.38 KB
Loading
Binary file not shown.

YoutubeDownloader/youtube.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import tkinter as tk
2+
from pytube import YouTube
3+
4+
5+
#Dispaly Window
6+
dock = tk.Tk()
7+
dock.geometry('500x300')
8+
dock.resizable(0,0)
9+
dock.title("TechTips By Lary Youtube Video Downloader")
10+
11+
tk.Label(dock, text ="Youtube Video Downloader", font ="arial 20 bold").pack()
12+
13+
#Enter the URL
14+
link = tk.StringVar()
15+
16+
tk.Label(dock, text ="Paste Link Here:", font ="arial 15 bold").place(x=160, y=60)
17+
link_error = tk.Entry(dock, width =70, textvariable = link).place(x =32, y=90)
18+
19+
#Function to download the video
20+
def Downloader():
21+
url =YouTube(str(link.get()))
22+
video =url.streams.first()
23+
video.download()
24+
tk.Label(dock, text ="Successfully Downloaded", font ="arial 15").place(x =180, y =200)
25+
26+
#Download Button
27+
tk.Button(dock, text ="DOWNLOAD", font ="Verdana 15 bold", bg ="orange", padx =2, command =Downloader).place(x=180, y=150)
28+
29+
dock.mainloop()

0 commit comments

Comments
 (0)