Skip to content

Commit 62f6d7b

Browse files
committed
Youtube video downloader
1 parent 4bffe26 commit 62f6d7b

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed
8.38 KB
Loading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This is a Youtube Video Downloader using python.
2+
3+
Sample GUI output!
4+
5+
![](https://github.com/larymak/Python-project-Scripts/blob/main/YoutubeDownloader/Capture.PNG)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytube==10.9.2
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+
#Display 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)