Easy Way to download youtube videos using python application without using any software
Hi All,
Youtube videos donwload seivatharku nam evalavo websites/applications use panirupom athil silavaikal namaku ilavasamaka kidaikum silavai paid version kidaikum athila namaku niraya features irukalam athe samayam namaku sila problems kooda varalam but intha post-il nam pakka irukum youtube application naam sonthamaka develop panna pora applicaton atharkana coding and explanation video keela iruku kandipa parunga...
#needed packages for developing this application from tkinter import * #this package is used to download the youtube video from pytube import YouTube #this package is used to convert the file size from hurry.filesize import size import os root = Tk() root.geometry("500x500") root.configure(background='white') root.resizable(0,0) root.title("Youtbe Downloader") #function that donwload the video from youtube and store in local computer def Download(): url = YouTube(str(link.get())) video = url.streams.first() video.download() video_name = video.title video_path = os.getcwd() video_size = size(video.filesize) v_name = "Video Name is : {}".format(video_name) v_path = "Video Path is : {}".format(video_path) v_size = "Video SIze is : {}".format(video_size) Label(root, text = "Video Downloaded", font = "arial 15", fg = "red").place(x = 180, y = 220) Label(root, text = v_name, font = "arial 8 bold", fg = "red").place(x = 10, y = 260) Label(root, text = v_path, font = "arial 8 bold", fg = "red").place(x = 10, y = 300) Label(root, text = v_size, font = "arial 8 bold", fg = "red").place(x = 10, y = 340) #Tkintr frame window desinging Label(root, text = "Youtube video downloader", font = "arial 20 bold").pack() link = StringVar() Label(root, text = "Paste Your link", font = "arial 15 bold").pack() link_entry = Entry(root, width = 70, textvariable = link).place(x = 32, y = 90) Button(root, text = "DOWNLOAD", font = "arial 15 bold", bg = "pale violet red", padx = 2, command =Download).place(x = 180, y= 150) root.mainloop()Video Reference :
Comments
Post a Comment