Title = Label(details,text = "Youtube MP4/MP3 Downloader")Įnter = Label(details, text = "Enter URL: ") This is the entire code in Youtube Tkinter Downloader: import timeįrom tkinter.filedialog import askopenfileĭid(row=0, column=0, sticky="nsew") Yt = yt.streams.filter(progressive=True, file_extension='mp4').order_by('resolution').desc().first() Spd = "/Users/eugesher/Downloads/Videos Pycharm" ![]() Here is the original code: from pytube import YouTube When I test the original code, independent from a tkinter and not placed in a definition, it still works with no such error encountered. However, after putting the code in a function to be executed upon pressing a button on a Tkinter GUI, I am given an error: Exception in Tkinter callbackįile "/Users/eugesher/opt/anaconda3/lib/python3.8/tkinter/_init_.py", line 1892, in _call_įile "/Users/eugesher/opt/anaconda3/lib/python3.8/site-packages/pytube/_main_.py", line 71, in _init_įile "/Users/eugesher/opt/anaconda3/lib/python3.8/site-packages/pytube/extract.py", line 133, in video_id The code I used to download Youtube videos in MP4 format with the pytube library works perfectly fine and I am able to download videos.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |