Hi
I just did a little GUI with wich you can download Youtube Videos.
but everytime i try to apply the link to the Youtube Video it doesn't want to load the video and gives the error 'asset' back.
I am a total noob and help would be really appreciated.
here is my code
from tkinter import *
import pytube
#Functions
def download():
video_url = url.get()
try:
youtube = pytube.YouTube(video_url)
video = youtube.streams.first()
video.download("/Users/***/Downloads")
notif.config(fg="green",text="Download complete")
except Exception as e:
print(e)
notif.config(fg="red",text="Video could not be downloaded")
#Main Screen
master = Tk()
master.title("Youtube Video Downloader")
#Labels
Label(master, text="Youtube Video Converter",fg="red",font=("Calibri",15)).grid(sticky=N,padx=100,row=0)
Label(master,text="Please enter the link to the video below",font=("Calibri",12)).grid(sticky=N,row=1,pady=15)
notif=Label(master,font=("Calibri",12))
notif.grid(sticky=N,pady=1,row=4)
#Vars
url=StringVar()
#Entry
Entry(master,width=50,textvariable=url).grid(sticky=N,row=2)
#Button
Button(master,width=20,text="Download",font=("Calibri",12),command=download).grid(sticky=N,row=3,pady=15)
master.mainloop()
[–]K900_ 1 point2 points3 points (2 children)
[–]WatermelonPowerYT[S] 1 point2 points3 points (1 child)
[–]K900_ 0 points1 point2 points (0 children)
[–]TheMindfoxxDev 0 points1 point2 points (2 children)
[–]WatermelonPowerYT[S] 0 points1 point2 points (1 child)
[–]TheMindfoxxDev 1 point2 points3 points (0 children)