Skip to content
This repository was archived by the owner on Oct 2, 2022. It is now read-only.
Open
Changes from all commits
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
30 changes: 30 additions & 0 deletions python/ytviddownloader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
from tkinter import *
from pytube import YouTube

window = Tk()
window.geometry("600x700")
window.config(bg="red")
window.title("Youtube Video Downloader by Tharuka")

youtube_logo = PhotoImage(file="yt.png")
window.iconphoto(False, youtube_logo)

Label(window, text="Video Downloader", font=("Arial 30 bold"), bg="lightgreen").pack(padx=5, pady=50)

video_link = StringVar()

Label(window, text="Enter the Link : ", font=("Arial",25,"bold")).place(x=170, y=150)

Entry_link = Entry(window, width=50, font=35 , textvariable=video_link, bd=4).place(x=60, y=200)

def video_download():
video_url = YouTube(str(video_link.get()))
videos = video_url.streams.first()
videos.download()

Label(window, text="Download Completed !!!", font=("Arial",35,"bold"),bg="lightpink",fg="Black").place(x=60, y=350)
Label(window, text="Check out Download Folder", font=("Arial", 30, "bold"), bg="yellow").place(x=60, y=400)

Button(window, text=".DOWNLOAD.", font=("Arial", 25, "bold"), bg="lightblue", command=video_download).place(x=180, y=300)

window.mainloop()