Skip to content

Commit add4f18

Browse files
committed
Added youtube downloader python program
1 parent 3ebe589 commit add4f18

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

Youtube Downloader/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Youtube Downloader
2+
It is a python program to download youtube videos using video link
3+
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
from tkinter import *
2+
from pytube import YouTube
3+
4+
root = Tk()
5+
root.geometry('500x300')
6+
root.resizable(0,0)
7+
root.title("DataFlair-youtube video downloader")
8+
9+
10+
Label(root,text = 'Youtube Video Downloader', font ='arial 20 bold').pack()
11+
12+
link = StringVar()
13+
14+
Label(root, text = 'https://www.youtube.com/watch?v=m3mlMFYv7rY&t=577s', font = 'arial 15 bold').place(x= 160 , y = 60)
15+
link_enter = Entry(root, width = 70,textvariable = link).place(x = 32, y = 90)
16+
17+
def Downloader():
18+
19+
url =YouTube(str(link.get()))
20+
video = url.streams.first()
21+
video.download()
22+
Label(root, text = 'DOWNLOADED', font = 'arial 15').place(x= 180 , y = 210)
23+
24+
25+
Button(root,text = 'DOWNLOAD', font = 'arial 15 bold' ,bg = 'pale violet red', padx = 2, command = Downloader).place(x=180 ,y = 150)
26+
27+
28+
29+
root.mainloop()

0 commit comments

Comments
 (0)