Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
YouTube Video Downloader
  • Loading branch information
larymak authored Mar 25, 2021
commit 5fd989fd636d42ee29d8039d0668233e7cc14136
Binary file added YoutubeDownloader/Capture.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
29 changes: 29 additions & 0 deletions YoutubeDownloader/youtube.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import tkinter as tk
from pytube import YouTube


#Dispaly Window
dock = tk.Tk()
dock.geometry('500x300')
dock.resizable(0,0)
dock.title("TechTips By Lary Youtube Video Downloader")

tk.Label(dock, text ="Youtube Video Downloader", font ="arial 20 bold").pack()

#Enter the URL
link = tk.StringVar()

tk.Label(dock, text ="Paste Link Here:", font ="arial 15 bold").place(x=160, y=60)
link_error = tk.Entry(dock, width =70, textvariable = link).place(x =32, y=90)

#Function to download the video
def Downloader():
url =YouTube(str(link.get()))
video =url.streams.first()
video.download()
tk.Label(dock, text ="Successfully Downloaded", font ="arial 15").place(x =180, y =200)

#Download Button
tk.Button(dock, text ="DOWNLOAD", font ="Verdana 15 bold", bg ="orange", padx =2, command =Downloader).place(x=180, y=150)

dock.mainloop()