Комментарии:
So this is not Updated but pytube is not properly maintained as of now and does not work, I have provided a updated active fork alternative. Works as of 9/16/2023
pre req's
pip install -U yt-dlp
import tkinter
import customtkinter
import subprocess
def startDownload():
try:
ytLink = link.get()
# Using subprocess to run yt-dlp command
result = subprocess.run(['C:\\Users\\ ((((((((((((INSERTUSERHERE))))))))))\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python311\\Scripts\\yt-dlp', ytLink], capture_output=True, text=True, check=True)
# Print the result if you wish
print(result.stdout)
print("Download Success!")
except subprocess.CalledProcessError as e:
print(f"The video is unavailable for download: {e}")
print(e.output)
except Exception as e:
print("An error occurred:", str(e))
print("Unable to download the video.")
# system settings
customtkinter.set_appearance_mode("System")
customtkinter.set_default_color_theme("blue")
# frame
app = customtkinter.CTk()
app.geometry("720x480")
app.title("test")
# UI elements
title = customtkinter.CTkLabel(app, text="Put in your nice link")
title.pack()
# Link
url_var = tkinter.StringVar()
link = customtkinter.CTkEntry(app, width=350, height=40, textvariable=url_var)
link.pack()
# Download Button
download = customtkinter.CTkButton(app, text="Click if u eat pizza", command=startDownload)
download.pack(padx=10, pady=10)
# runloop
app.mainloop()
Love this. Please do more.
ОтветитьTkinter is the worst library in the world.python actualy has no good gui library
ОтветитьReally loved it ...!
ОтветитьIt says Download Complete, but i cannot find the video file anywhere
Ответитьhi this tutorial is amazing and it also worked for me but i just wanted to ask you if you can make another tutorial with all the same things in this tutorial but just adding a resolution buttons with different resolution
ОтветитьHello sir, my name is Herry and i'm still learning a python. I've got an issue in my code. When i started to run the program, my terminal mentioned me this No module named 'customtkinter'. Even i already install the customtkinter, pytube, this warning still appeared. Could you please explain to me how to solve this issue? And i apologize for my bad english. Big appreciate for you if you respond my comment. Thank you, sir.
Ответитьmine says it failed and then saved and it doesnt even show in the directory!?!?!?!
Ответитьyoooooo i learned web front-end developement from you long ting time ago,and here we are learning again from the best.i missed learning from you.10/10 from now❤❤❤❤❤❤
ОтветитьVideos with age restrictions cannot be downloaded. How are we going to save it?
ОтветитьAmazing tutorial!
ОтветитьHelp
I recreated the same project but when I run the script, my window does not responds or prints download error.
please help me if somebody can
I wish i knew more code.
The beauty of python .
Loved this one, will try to implement a launcher for an online game and see how it goes... I am curious to know if I will be able to make it work by downloading the version updates of the files. can't wait to see more content like this one.
ОтветитьAnd for date picker?
ОтветитьIm not sure why but everything works other than when i try to download a video it just says the "Download Error" and i cant get around it
Ответитьfirst i found out about pytube and decided to combine it with tkinter in a project. than i was told that there is already a website that does the same thing i wanted to create. now i find out that there is already a tutorial on how to build such a project. at this point i'm dead inside...
ОтветитьWhere does it download?
Ответитьyou are the best!!
ОтветитьI have not rebuilt it yet, but really amazing. :) I would use pyinstaller as well to create an executable
ОтветитьGreat video.
ОтветитьGreat tutorial about developing a cool looking gui in Python. Thanks
ОтветитьI made it, and it seems to work, but I can't find the directory where it's downloading them to!!!! It's not going to my downloads directory.
Ответитьdoes pytube still work? I keep getting an error
ОтветитьProgessbar does not work
Ответить🎉
Ответитьwhere is the code, only for video
ОтветитьWhere can I get inspo for clean modern UI's I can't seem to look up on yt cuz it gives random stuff that doesn't fit the description of what I'm trying to look for😭
Ответитьgreat tutorial there
Ответитьnothing happens when i run the program
Edit: nvm i figured it out, nice tutorial tho :)
how can I change the download chunk size in pytube?? by default it is 9MB, and I want to make it less than that
ОтветитьWhere gtk4 + libadwaita? :(
ОтветитьI can't find the path of the video I downloaded, can someone help me?
ОтветитьWell done!!
ОтветитьNice one bro.
Ответитьdamian@DESKTOP-NRS59TQ MINGW64 ~
$ python Untitled-1
C:\Users\dstro\AppData\Local\Programs\Python\Python310\python.exe: can't open file 'C:\\Users\\dstro\\Untitled-1': [Errno 2] No such file or directory
i get this error, very fustraiting
Thank you, very useful and simple. Is it legal to deploy on my website?
ОтветитьPlease sir make a video on making a website that generates ai images using Stable Diffusion api with python, etc 🙏🙏🙏
ОтветитьPlease do another video where perhaps you combine this desktop app with backend. Node backend to be specific.
Thank you for great content 👏
I have customtkinter installed and updated, but yet it says I dont. So I cant run the code.
Anyone else with the same problem?
ModuleNotFoundError: No module named 'customtkinter'
1 subscribe for you to not using any background music i love it
ОтветитьProgress bar is indeed a problem, and somehow my labels as well.
ОтветитьSo, Python is great if you only want to tinker with settings but never learn how to program!
ОтветитьEdwin, your google drive links are dead, please update them and also instered in patreon users.
ОтветитьAbsolutely love this one. Would like to see more. Thanks
ОтветитьSo I really like this and I followed the video step by step and it works great, except... it doesn't show the progress bar or percentage rising while running the code. In fact the whole console goes unresponsive until the download is complete After it's complete everything updates and shows as one would expect but it's not running while the download is progressing. Do you know of any fix to this?
Ответить