Build A Modern Python GUI Project | Step by Step Tutorial

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 233

  • @debabella-wr6et
    @debabella-wr6et 8 місяців тому +18

    🎯 Key Takeaways for quick navigation:
    00:00 *🎬 Introduction to Python GUI Project*
    - Introduction to creating a modern GUI project in Python for downloading UA-cam videos.
    01:49 *🐍 Setting Up Python Environment*
    - Instructions for setting up Python environment, including installation of required packages like tkinter and Pytube.
    04:08 *🖥️ Designing the User Interface*
    - Designing the GUI layout using tkinter, specifying frame size, title, labels, and entry for input.
    06:18 *⚙️ Implementing Basic Functionality*
    - Implementing basic functionality such as fetching input, creating a function to handle download requests, and displaying download status.
    16:51 *📈 Adding Additional Functionality*
    - Enhancing the user experience by updating UI elements dynamically, displaying download progress, and handling errors gracefully.
    21:45 *🔄 Adding Progress Bar*
    - Optional addition of a progress bar to the GUI for visualizing the download progress of UA-cam videos.
    22:10 *📊 Displaying Progress Percentage*
    - Implementing a label to display the progress percentage during video download.
    - Creation of a progress bar widget for visual representation of download progress.
    23:49 *🛠️ Implementing Download Progress Functionality*
    - Defining a callback function to track download progress using Pytube's callback feature.
    - Accessing information such as total file size and bytes downloaded to calculate the download percentage.
    - Updating the progress label and progress bar dynamically during the download process.
    28:03 *📚 Additional Resources and Conclusion*
    - Encouragement to explore further customization and functionality using tkinter.
    - Reference to custom tkinter documentation for more advanced features and examples.
    - Invitation for feedback, suggestions, and potential enhancements like video quality selection.
    Made with HARPA AI

  • @NightSpyderTech
    @NightSpyderTech 9 місяців тому +15

    I spent half a day messing around with Tauri / Vue trying to figure out how to customize the GUI and in half an hour I had this working as demonstrated and had expanded it out with extra functionality. This is an awesome vid and so much simplier with an interface that still looks super clean and modern. I'd heard mention of tkinter before when I was looking into and experimenting with PyQt, but you've sold me on it. Can't wait to check out your other and more recent videos!

  • @alvarofigueroa4693
    @alvarofigueroa4693 6 місяців тому +5

    Great tutorial man. Kudos!.
    I was unable to downloaded a couple videos (yours included and another from Rick Beato) and entered a question here to see if anyone else have the same issue. And then tried a few more videos and voilà, it worked as expected!
    Thanks so much for sharing this with us. I learnt a lot from it.
    cheers!

    • @rohitut1
      @rohitut1 4 місяці тому +1

      yes it dint download

  • @ЛевАронов
    @ЛевАронов Рік тому +67

    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...

    • @prohubbeta
      @prohubbeta 11 місяців тому +20

      It's okay if you are trying to make something that's already available, it's a good feeling building something on your own and seeing it work.

    • @sirseven3
      @sirseven3 11 місяців тому

      ​@@prohubbetaespecially when you have specific interests that deviate from the project and troubleshoot your own code

    • @ChandrayMurmu22
      @ChandrayMurmu22 9 місяців тому

      What is the website name ?

    • @RakibHasan-hs1me
      @RakibHasan-hs1me 8 місяців тому

      You should still try, what if your one is better and faster.

    • @skyfonix1
      @skyfonix1 7 місяців тому

      I feel the same

  • @HadisJabbarzadeh
    @HadisJabbarzadeh 3 місяці тому +1

    Thank you so much for this amazing tutorial. I had a class project and I had no idea how to make a progress bar for a downloader?!!!! and I'm not good at understanding documentations so this video saved me 💚

  • @LucasGabrieh
    @LucasGabrieh 7 місяців тому +9

    This is AMAZING! Just one minor (really nit thing) - PEP8 for python doesn't indicate the usage of camel case for functions, snake case should be used there (start_download(), for example)

  • @djmj12714
    @djmj12714 4 місяці тому

    New sub here! I wrote an script that uses pytube w/ no GUI. This tutorial provided a great start to taking the app to the next level. Well done, mate!

  • @TypeiZ
    @TypeiZ 9 місяців тому +1

    Hey, thank you so much! this is the best UA-cam tutorial for a download i found. I tried about 8 different tutorials but this is by far the best!
    Could you perhaps show us how to implement a folder selection too? i would love to chose where i download my files! :) Big thanks for the video!

  • @mathieudebibikoff4369
    @mathieudebibikoff4369 8 місяців тому +3

    which IDE are you using and how did you get your IDE to work???
    I graduated from computer science college, and I still can't get my IDEs to work at home, for like any language, I always have compiler problems, or framework problems, or I can't include some libraries, I'm tired T_T

    • @byeloz2436
      @byeloz2436 26 днів тому

      hes using Visual Studio Code.

  • @eugenmalatov5470
    @eugenmalatov5470 Рік тому +14

    I have not rebuilt it yet, but really amazing. :) I would use pyinstaller as well to create an executable

    • @learningforever957
      @learningforever957 3 місяці тому

      That wont work as expected. Windows will detect it as a virus so is useless, to be honest

  • @manoellopes
    @manoellopes Рік тому +13

    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.

    • @GultReverz4.0
      @GultReverz4.0 6 місяців тому

      Its been a while me learning to code. Now I was learning Tkinter. I want to create a hospital management software But i am not able to make so , Any suggestions!
      😊

    • @kevinison3740
      @kevinison3740 4 місяці тому

      @@GultReverz4.0 Break it up into parts or use cases... build pieces as components...

    • @GultReverz4.0
      @GultReverz4.0 4 місяці тому

      @@kevinison3740 broi need guidance in my intermediate level of programming , can we come in contact?

    • @GultReverz4.0
      @GultReverz4.0 4 місяці тому

      @@kevinison3740 I am quite intermediate in my programming journey, need some contact , could we come in contact?

  • @programmingholic
    @programmingholic Рік тому +1

    those who face promblem to install tkinter you can also run this command =>> pip install tk then can import ==> import tkinter as tk

  • @caleb.39
    @caleb.39 Рік тому +2

    27:35 you don't need to convert percentage_of_completion to float since it's already a float

  • @pablozuta2402
    @pablozuta2402 Рік тому +4

    Yes !, nice to see Python content in your channel 🙂

  • @tezbriz
    @tezbriz 9 місяців тому +3

    Great video, but i am stuck. I have followewd the instructions but my video is not downloading and i get both print messages. link invalid and download complete.

  • @developedbyed
    @developedbyed  Рік тому +3

    Keep exploring at brilliant.org/developedbyed/. Get started for free, and hurry-the first 200 people get 20% off an annual premium subscription.

  • @sahil_rajani_7
    @sahil_rajani_7 7 місяців тому +1

    Didnot know Jack Dorsey had youtube channel

  • @darkiller5219
    @darkiller5219 Рік тому +17

    Do more python content please !!

  • @bryanwaweru2506
    @bryanwaweru2506 5 днів тому +1

    Hey, kindly provide us with the source code. Great video 👍

  • @UltimaDJS
    @UltimaDJS Рік тому +10

    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?

    • @LaxMeister
      @LaxMeister Рік тому +2

      I'm struggling with this also. What I found is that you have to use threading. Which I have done but it still doesn't work. Only thing that threading helps with is stop the freezing of the GUI.
      Still not getting any progress.. I don't know if it's Pytube that has a bug or it's my code

    • @4n5husaini55
      @4n5husaini55 Рік тому +1

      Same! @developedbyed please help!

    • @nicow6975
      @nicow6975 Рік тому

      Me too! My window just stops responding...

    • @kabou2011
      @kabou2011 Рік тому +2

      @@nicow6975 it stops and comes back, i tried a small video and it went from 0 to 100 also once
      it works if you try downloading a large video like this specifc video it gave progress

    • @soufianesoufiane7218
      @soufianesoufiane7218 9 місяців тому

      Same, My window is stops responding

  • @Hariharan-oq6lx
    @Hariharan-oq6lx Місяць тому

    you are the king of python......................

  • @Adel-o7p
    @Adel-o7p 4 місяці тому

    Thanks, you solved my problem downloading videos (especially with IDM)

  • @gambomaster
    @gambomaster Рік тому +1

    Ok so our gorgeous teacher on the internet is going to teach us Python too? That sounds interesting and exciting. Hopefully you will release a real world project in Python soon. 🙏🙏🙏

  • @toonverse3950
    @toonverse3950 3 місяці тому

    thanks man you solved alot of my problems like the one on 5:54

  • @catoberge
    @catoberge Рік тому +10

    Yay! This is JUST what I was thinking of doing, but didn`t know where to start. I like :)
    Edit: I made it. Really fun and satisfying project.

    • @shahil1867
      @shahil1867 10 місяців тому

      Can you share it? I need it for project 😭

    • @danielvarga_p
      @danielvarga_p 8 місяців тому

      ​@@shahil1867 Would you still need it?
      I am planning to make this in the following days, if you interested I could send it later.

    • @danielvarga_p
      @danielvarga_p 8 місяців тому

      @@shahil1867
      TEST here is the code actually, to test if this can be done on UA-cam.
      import tkinter
      import customtkinter
      from pytube import UA-cam
      ## Something is not right here - The YT was age restricted required login
      def startDownload():
      try:
      ytLink = link.get()
      ytObject = UA-cam(ytLink, on_progress_callback=on_progress)
      video = ytObject.streams.get_highest_resolution()
      title.configure(text=ytObject.title, text_color="white")
      finishLabel.configure(text="")
      video.download()
      finishLabel.configure(text="Downloaded!", text_color="white")
      except:
      finishLabel.configure(text="Download error", text_color="red")
      #from UA-cam class from pytube
      def on_progress(stream, chunk, bytes_remaining):
      total_size = stream.filesize
      bytes_downloaded = total_size - bytes_remaining
      percentage_of_completion = bytes_downloaded / total_size * 100
      per = str(int(percentage_of_completion))
      pPercentage.configure(text=per + '%')
      pPercentage.update()
      # Update progress bar
      progressBar.set(float(percentage_of_completion) / 100)
      # System Settings
      customtkinter.set_appearance_mode("Dark")
      customtkinter.set_default_color_theme("blue")
      # Our app frame
      app = customtkinter.CTk()
      app.geometry("720x280")
      app.title("Video Downloader - UA-cam")
      # Adding UI Elements
      title = customtkinter.CTkLabel(app, text="Insert a youtube link")
      title.pack(padx=10, pady=10)
      # Link input
      url_var = tkinter.StringVar()
      link = customtkinter.CTkEntry(app, width=350, height=40, textvariable=url_var)
      link.pack()
      # Finished Downloading
      finishLabel = customtkinter.CTkLabel(app, text ="")
      finishLabel.pack()
      # Progress percentage
      pPercentage = customtkinter.CTkLabel(app, text="0%")
      pPercentage.pack()
      progressBar = customtkinter.CTkProgressBar(app, width=400)
      progressBar.set(0)
      progressBar.pack(padx=10, pady=10)
      # Download button /// New function needed for startDownload
      download = customtkinter.CTkButton(app, text="Download", command=startDownload)
      download.pack(padx=10, pady=10)
      #.........................LAST
      # Run app
      app.mainloop()

  • @SayouPla
    @SayouPla 6 місяців тому +1

    (Pin this)
    if you had any problem when you installed pytube , tkinter or custumtkinter in the integrated terminal or any terminal , please restart vs code after installation. I had to go on reddit posts and panic!

  • @AMindInOverdrive
    @AMindInOverdrive 10 місяців тому +1

    'pip install tkinter' command doesn't work for me. Googled and it says use 'pip install tk' - I wonder why this is?
    Edit: Figured it out. The error said 'ModuleNotFoundError: No module named 'packaging'' - just did a 'pip install packaging' and it worked!!

    • @Arkkis27
      @Arkkis27 10 місяців тому +1

      Thanks for the solution, had the same problem!

  • @facefamousee
    @facefamousee 2 місяці тому

    nice, i've learnt and established alot from this video.👍

  • @holmseifert3469
    @holmseifert3469 Рік тому +5

    Great tutorial about developing a cool looking gui in Python. Thanks

  • @Sirveyor226
    @Sirveyor226 Рік тому +2

    Love this. Please do more.

  • @afrikanonyma
    @afrikanonyma 7 місяців тому

    Nice.... need also one about PyQT, please.

  • @ronnykgalema
    @ronnykgalema Рік тому +6

    Please do another video where perhaps you combine this desktop app with backend. Node backend to be specific.
    Thank you for great content 👏

  • @killerb6090
    @killerb6090 Рік тому +1

    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❤❤❤❤❤❤

  • @T3ddyPro
    @T3ddyPro 2 місяці тому +1

    When i try to click download it give me this error: "Error while downloading: get_throttling_function_name: could not find match for multiple
    You may need to update pytube or use an alternative."

  • @howardhamaker2708
    @howardhamaker2708 Рік тому +4

    Tip: Don't name your file "main". It is a no no in python. Internally, the python program in memory is named "main" also.
    You can see this in code if __name__ == "__main__" At the very least it might cause confusion.

    • @mz5234
      @mz5234 9 місяців тому

      I named mine as UA-camDownloader.py

  • @chandrakala7302
    @chandrakala7302 Рік тому +1

    Thankyou so much!! you really helped me today!!!

  • @kgaming7599
    @kgaming7599 10 місяців тому

    hey bro! what vscode theme do you use? i like it 😅

  • @Hadi_Dizajie
    @Hadi_Dizajie 2 місяці тому

    Great project 💪🏻

  • @wazziii
    @wazziii Рік тому +1

    my program is working but the video from youtube does not download everything works but file is nowhere to be find ? can anyone help

  • @mohamedlahrech178
    @mohamedlahrech178 Рік тому

    Thank you, very useful and simple. Is it legal to deploy on my website?

  • @ujjwal9638
    @ujjwal9638 Рік тому +2

    Create this with NodeJs and make a video on it if possible

  • @thesouthsidedev1812
    @thesouthsidedev1812 Рік тому

    You are a legend Ed

  • @matusturcan4525
    @matusturcan4525 Місяць тому +2

    not working for me ... still getting invalid link whatever I do having the same code you have.. maybe the pytube library changed ? anybody ?

    • @byeloz2436
      @byeloz2436 26 днів тому +1

      same, not sure if the pytube library is outdated
      Found the fix, Pytube is the problem, its using an outdated library, therefore you need to use ytdlp, and fix the code:
      import tkinter
      import customtkinter
      from yt_dlp import UA-camDL
      def start_download():
      yt_dlp_link = link.get()
      if not yt_dlp_link.strip():
      print("Error: The URL cannot be empty.")
      return
      try:
      # Configuration for UA-camDL
      ydl_opts = {
      'format': 'best',
      'outtmpl': '%(title)s.%(ext)s'
      }
      with UA-camDL(ydl_opts) as yt_dlp_object:
      yt_dlp_object.download([yt_dlp_link])
      print("Download Complete!")
      except Exception as e:
      print("Error:", e)
      # System settings
      customtkinter.set_appearance_mode("System")
      customtkinter.set_default_color_theme("blue")
      # Our app Frame
      app = customtkinter.CTk()
      app.geometry("720x480")
      app.title("UA-cam Downloader")
      # Adding UI Elements
      title = customtkinter.CTkLabel(app, text="Insert a youtube link")
      title.pack(padx=10, pady=10)
      # Link input
      url_var = tkinter.StringVar()
      link = customtkinter.CTkEntry(app, width=350, height=40, textvariable=url_var)
      link.pack()
      # Download button
      download = customtkinter.CTkButton(app, text="Download", command=start_download)
      download.pack(padx=10, pady=10)
      # Run app
      app.mainloop()
      This should get it to work.

  • @mehliamm
    @mehliamm Рік тому +1

    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😭

  • @ghostxtempzz115
    @ghostxtempzz115 9 місяців тому

    Love this tutorial!
    How would you make the progress bar go back to 0% on a new link being inputted so that when you press download with the new link it will update?

    • @soufianesoufiane7218
      @soufianesoufiane7218 9 місяців тому +1

      write in the top of function start_downloading
      label_finish.configure(text="")
      bar_Progress.set(0)
      label_Progress.configure("0 %")
      for reset title and progress

  • @paulthomas1052
    @paulthomas1052 Рік тому +1

    Great demo - thanks :)

  • @البرنامجالعاممنالقاهرة

    Good work man

  • @anmolgupta763
    @anmolgupta763 Рік тому +1

    Really loved it ...!

  • @cozyvibes6178
    @cozyvibes6178 Рік тому

    17:00 Progress loading bar (start)

  • @withoutmalicexo
    @withoutmalicexo 7 місяців тому

    Can we specify wher the file is downloaded? Even if it is hardcoded...? I think its downloading in the project folder in this example.

  • @rahulbhatt1
    @rahulbhatt1 Рік тому +2

    Please sir make a video on making a website that generates ai images using Stable Diffusion api with python, etc 🙏🙏🙏

  • @moradgames125
    @moradgames125 Рік тому +1

    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

    • @SilentNorn
      @SilentNorn 7 місяців тому

      ytObject.streams.get_by_resolution("INSERT YOUR DESIRED RESOLUTION HERE") instead of ytObject.streams.get_highest_resolution(). You can combine it with a DropDown button to select your resolution instead of a regular button for example.

  • @eriklehman3175
    @eriklehman3175 5 місяців тому

    great video! now we don't have to pay google for a video!! i have to ask, where is the file saved? i'm brand new to this so that should be a part of the code

  • @yannickmelchior1774
    @yannickmelchior1774 4 місяці тому

    Good morning,
    Very good video and very informative, I tried to copy the code, but I have a lot of problems following the writing.
    would it be possible to give me a link where i could download the source code.
    Thank you in advance for your understanding.
    Yannick

  • @mister-med
    @mister-med Рік тому

    Your font police is really awesome! What is it please?

  • @Ohiostategenerationx
    @Ohiostategenerationx 7 місяців тому

    Mine is saying downloaded but I can't find the video anywhere on my computer. I don't know what I would be doing wrong. Would I not have to code into the program a folder destination?

  • @elixivity6366
    @elixivity6366 Рік тому +1

    Where does it download?

  • @JNET_Reloaded
    @JNET_Reloaded Рік тому +1

    put a checkbox onit that can open in vlc after dl complete! that would be better and a button top open the folder the fil that dl is in!

  • @OriginalRed5
    @OriginalRed5 Рік тому

    Well done!!

  • @subhanullahadelyar
    @subhanullahadelyar 6 місяців тому

    Wow! Amazing content.

  • @godsongee4748
    @godsongee4748 5 місяців тому +1

    Please where does the video download to ?

    • @GameAudio1
      @GameAudio1 4 місяці тому

      To the folder where the code is run from.

  • @Tags7048
    @Tags7048 2 місяці тому

    I have a issue at 3:39 theres a error that says customtkinter does not defined ??? Can someone help pls

  • @Tr0nixUK
    @Tr0nixUK Рік тому +1

    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

    • @wverbrug1
      @wverbrug1 Рік тому +2

      i have the same problem, so i searched it on google.
      google says this: "The original pytube library no longer works, so we need to use the pytube3 library, which only works with Python3 and not with Python2"

  • @kevinmakumbe
    @kevinmakumbe 9 місяців тому

    Great tut, how do i center the form on screen coz it seems not to work in custom tkinter

  • @MewtwoStar
    @MewtwoStar 9 місяців тому +1

    how can we convert this to .exe format (or installable format) and use as a normal application in any PC

  • @ricokariuki3655
    @ricokariuki3655 Рік тому

    great tutorial there

  • @idk6465
    @idk6465 Рік тому +2

    Progress bar is indeed a problem, and somehow my labels as well.

    • @mz5234
      @mz5234 9 місяців тому

      Are you running in IDLE or VS Code?
      For some reason - when I ran in VS Code- as he does in his video - it implements completely accurate.
      I pored over the code and wrote down the code line by line on paper and compared with what he typed in the video.
      Realized today - that he used VS Code terminal
      and I ran it from IDLE
      when I ran from IDLE the app works - it downloads
      but the GUI doesn't operate completely accurately
      like the progress bar didn't update
      it was shown
      but showed complete at the end
      try VS Code to run - it should work?

  • @akshaysatav2431
    @akshaysatav2431 Рік тому +1

    By just seeing one video i was becomes yours super fan ✨

    • @gautamanand1201
      @gautamanand1201 Рік тому

      Just by reading your english, I suffered from cancer 🥲

    • @akshaysatav2431
      @akshaysatav2431 Рік тому

      @@gautamanand1201 bhai meri matru bhasha Hindi he English nahi 🤭

    • @gambomaster
      @gambomaster Рік тому

      @@akshaysatav2431 python ko hindi mein kya kehte hai? 😌

    • @akshaysatav2431
      @akshaysatav2431 Рік тому

      @@gambomaster wahi kehte he jo tyre ko English mein kehte he 😂

  • @bennikania813
    @bennikania813 10 місяців тому

    what theme package do you use?

  • @msmalik681
    @msmalik681 9 місяців тому

    Nice tutorial

  • @johnritter6864
    @johnritter6864 2 місяці тому

    I dont get any errors with this code, however, its says invalid link AND download complete and there is no sign of the video. I have checked several folders for it but assume it just didnt come down after several attempts.

    • @Makedonas61
      @Makedonas61 Місяць тому +1

      Ik its a late reply, but Pytube isnt maintained anymore and thus, doesnt work. I used yt-dlp instead

  • @ymn9738
    @ymn9738 7 днів тому

    trying to follow this in Nov 2024, I keep getting HTTP Error 400 Bad Request. Fixed it by installing pytubefix instead of pytube. Everything else is the same.

  • @dispatersdance9691
    @dispatersdance9691 9 місяців тому

    Thanks, was able to build everything but I could not download the video. Well, it did download but can't find in my python directory.

  • @o1techacademy
    @o1techacademy Рік тому

    Nice one bro.

  • @Nvv58
    @Nvv58 6 місяців тому

    is there a way to make another button wich only downloads mp3

  • @clydexr
    @clydexr Рік тому +1

    mine says it failed and then saved and it doesnt even show in the directory!?!?!?!

    • @mz5234
      @mz5234 Рік тому

      saves in your default Python folder
      which is where Python lives on your computer.
      there's probably a way to change the directory to one you create
      left this project on hold - so haven't managed to do that myself yet

  • @BLACKDREAMIO
    @BLACKDREAMIO Рік тому +1

    1 subscribe for you to not using any background music i love it

  • @DevHub168
    @DevHub168 Рік тому

    Videos with age restrictions cannot be downloaded. How are we going to save it?

  • @alirad8996
    @alirad8996 10 місяців тому

    thanks man

  • @martindlxs
    @martindlxs Рік тому +1

    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'

    • @truffle_pig
      @truffle_pig Рік тому

      hi sorry for the late response! yes if you are running it on Windows 10 or 11 through WSL using Ubuntu you are gonna have a tough time getting this up and going

  • @nortrap
    @nortrap Рік тому

    "I think we have some sort of....." that is my experience with python on windows also :)

  • @skaruts
    @skaruts 5 місяців тому

    I tried using this video as the test subject for downloading, and pytube tells me it's age restricted, for some reason.

  • @HNMCK
    @HNMCK Рік тому

    Love the python content!

  • @Levy9_AriharaNanami
    @Levy9_AriharaNanami 3 місяці тому +1

    It didn't work

  • @mz5234
    @mz5234 9 місяців тому

    Can anyone describe to me why:
    running the same code in MS VS Code terminal leads to a more accurate result?
    When I ran the same exact code from the IDLE interface-- the GUI Window - didn't update the progressbar in real time.
    The video downloaded - but the progress bar didn't implement in real time on the GUI.
    When I run it in MS VS Code- it works exactly the same as developedbyed's video.
    I didn't change anything with the code.
    spent hours and hours looking at it - couldn't figure out why.
    then watched the video again today - and realized he's using VS Code - and I didn't run it from VS Code.
    Shouldn't the result be the same?

  • @payochannel1140
    @payochannel1140 Рік тому

    I wish i knew more code.
    The beauty of python .

  • @Ineedsumrandom
    @Ineedsumrandom Рік тому +1

    It says Download Complete, but i cannot find the video file anywhere

    • @mz5234
      @mz5234 Рік тому

      I think it automatically saves into your python directory.
      So wherever python default saved to on your computer.

    • @Ineedsumrandom
      @Ineedsumrandom Рік тому

      @@mz5234 is there a way to change where it downloads too?

    • @mz5234
      @mz5234 Рік тому

      @@Ineedsumrandom hello there!
      Missed this
      I was trying to figure that out --let my projects sit on the back burner for about 3-4 weeks now
      maybe you have already found out
      will add the answer here -- when I figure it out
      I am guessing though
      -- you have to specify the PATH
      you can find the PATH of the generic Python directory - where the Python program lives
      and then copy and paste that PATH
      and then - from there --- store that in some variable
      and switch - to the PATH_new you want.
      don't quote me though
      stuck cleaning the garage atm

  • @mohammedmahdidjaballah802
    @mohammedmahdidjaballah802 Рік тому

    how can I change the download chunk size in pytube?? by default it is 9MB, and I want to make it less than that

  • @Blackronin357
    @Blackronin357 10 місяців тому

    Having an issue where the .streams method isn't being recognized in VS code for some reason. When I try to download a yt link, I get both the invalid error and download complete to print out to terminal, but there's no file downloaded. Wondering why the .stream method isn't being recognized. Any ideas/help is appreciated!
    Otherwise, easy to follow video and it was nice to see the errors come up so it can help newbies like myself get the ropes.

    • @Blackronin357
      @Blackronin357 10 місяців тому

      Found my issue, forgot the s somehow in streams when I kept thinking it was there. I think it also helped that I restarted VS code and updated PowerShell to the latest version so IntelliSense pulled the method up.

    • @22varian1
      @22varian1 4 місяці тому

      I'm have the same issue. I tried you're solution was well.

  • @gkhnylmz53
    @gkhnylmz53 Рік тому

    I love it ! Thank you so much !

  • @R3KTPUBG
    @R3KTPUBG 4 місяці тому

    I got problem please anyone help me out. The problem is that whenever I try to download any video and click on download button the program sops responding

  • @chrisscha2088
    @chrisscha2088 Місяць тому

    Hello i am trying to run the code but I'm getting a TypeError: Variable.trace_add() missing 1 positional argument 'callback'. Can anyone help?

    • @bogdan_cx
      @bogdan_cx 9 днів тому

      same, did you fix it?

  • @ITSINSP1RE
    @ITSINSP1RE 2 місяці тому +3

    if it doesn,t work type:
    import tkinter as tk
    from tkinter import messagebox
    import customtkinter as ctk
    import yt_dlp
    import threading
    def startDownload():
    def download():
    try:
    ytLink = link.get()
    if not ytLink:
    messagebox.showwarning("Warning", "Please enter a valid UA-cam link.")
    return
    ydl_opts = {
    'format': 'best', # Download the best available quality
    'outtmpl': '%(title)s.%(ext)s', # Save file with the video title
    'merge_output_format': 'mp4', # Ensure the output is in mp4 format
    }
    print("Starting download...")
    with yt_dlp.UA-camDL(ydl_opts) as ydl:
    ydl.download([ytLink])

    messagebox.showinfo("Success", "Download complete!")
    except Exception as e:
    print(f"Error: {e}") # Print error for debugging
    messagebox.showerror("Error", f"An unexpected error occurred: {e}")
    finally:
    download_button.configure(state=tk.NORMAL) # Re-enable the button
    download_button.configure(state=tk.DISABLED) # Disable the button to prevent multiple clicks
    threading.Thread(target=download).start()
    # SYSTEM SETTINGS
    ctk.set_appearance_mode("System")
    ctk.set_default_color_theme("blue")
    # APP FRAME
    app = ctk.CTk()
    app.geometry("720x480")
    app.title("UA-cam DOWNLOADER")
    # ADDING UI ELEMENTS
    title = ctk.CTkLabel(app, text="Insert a UA-cam link")
    title.pack(padx=10, pady=10)
    # LINK INPUT
    url_var = tk.StringVar()
    link = ctk.CTkEntry(app, width=350, height=40, textvariable=url_var)
    link.pack(padx=10, pady=10)
    # DOWNLOAD BUTTON
    download_button = ctk.CTkButton(app, text="DOWNLOAD", command=startDownload)
    download_button.pack(padx=10, pady=10)
    # RUN APP
    app.mainloop()

    • @羊白-y3t
      @羊白-y3t 2 місяці тому

      quick and nice

    • @aaronamankwah
      @aaronamankwah 13 днів тому

      This was Very Helpful! Now I don't have to worry about any annoying ads during videos! Thank You!

  • @gregoneill4391
    @gregoneill4391 26 днів тому

    for some reason mine wont download or it has but i can't find the file lol
    I can see the box and i did get a download progress just no file

  • @kvelez
    @kvelez Рік тому

    Great video.

  • @sheri9516
    @sheri9516 Рік тому

    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

  • @Lunolux
    @Lunolux Рік тому

    great video, more video on python could be great.

  • @Moustachebear123
    @Moustachebear123 5 місяців тому +2

    Can Someone send me the code from this video without me having to manually typing everything here

    • @Tags7048
      @Tags7048 2 місяці тому

      No😂 at least i am not going to cus i cant figer it out

  • @leborito
    @leborito 7 місяців тому

    What is the text editor being used?

  • @jvsonyt
    @jvsonyt Рік тому +1

    does pytube still work? I keep getting an error

    • @Reficul999
      @Reficul999 Рік тому

      Wich error?

    • @mz5234
      @mz5234 Рік тому

      works for me!
      tried about 3 weeks ago