Build A Modern Python GUI Project | Step by Step Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ธ.ค. 2024

ความคิดเห็น • 243

  • @debabella-wr6et
    @debabella-wr6et 9 หลายเดือนก่อน +21

    🎯 Key Takeaways for quick navigation:
    00:00 *🎬 Introduction to Python GUI Project*
    - Introduction to creating a modern GUI project in Python for downloading TH-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 TH-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 10 หลายเดือนก่อน +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!

  • @ЛевАронов
    @ЛевАронов ปีที่แล้ว +68

    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 ปีที่แล้ว +22

      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 ปีที่แล้ว

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

    • @ChandrayMurmu22
      @ChandrayMurmu22 10 หลายเดือนก่อน

      What is the website name ?

    • @RakibHasan-hs1me
      @RakibHasan-hs1me 9 หลายเดือนก่อน

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

    • @skyfonix1
      @skyfonix1 8 หลายเดือนก่อน

      I feel the same

  • @LucasGabrieh
    @LucasGabrieh 8 หลายเดือนก่อน +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)

  • @alvarofigueroa4693
    @alvarofigueroa4693 7 หลายเดือนก่อน +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 5 หลายเดือนก่อน +1

      yes it dint download

  • @caleb.39
    @caleb.39 ปีที่แล้ว +2

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

  • @djmj12714
    @djmj12714 5 หลายเดือนก่อน

    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!

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

    • @gurvinder_saini
      @gurvinder_saini 7 หลายเดือนก่อน

      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 5 หลายเดือนก่อน

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

    • @gurvinder_saini
      @gurvinder_saini 5 หลายเดือนก่อน

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

    • @gurvinder_saini
      @gurvinder_saini 5 หลายเดือนก่อน

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

  • @HadisJabbarzadeh
    @HadisJabbarzadeh 4 หลายเดือนก่อน +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 💚

  • @eugenmalatov5470
    @eugenmalatov5470 ปีที่แล้ว +14

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

    • @learningforever957
      @learningforever957 4 หลายเดือนก่อน

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

  • @programmingholic
    @programmingholic ปีที่แล้ว +2

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

  • @TypeiZ
    @TypeiZ 10 หลายเดือนก่อน +1

    Hey, thank you so much! this is the best TH-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!

  • @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

  • @tezbriz
    @tezbriz 10 หลายเดือนก่อน +4

    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.

    • @echostation280
      @echostation280 10 หลายเดือนก่อน

      Same!!

    • @yuz1509
      @yuz1509 10 หลายเดือนก่อน

      Same

    • @HriCode
      @HriCode 15 วันที่ผ่านมา

      @@yuz1509 same

  • @mathieudebibikoff4369
    @mathieudebibikoff4369 9 หลายเดือนก่อน +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 หลายเดือนก่อน

      hes using Visual Studio Code.

  • @sahil_rajani_7
    @sahil_rajani_7 8 หลายเดือนก่อน +1

    Didnot know Jack Dorsey had youtube channel

  • @darkiller5219
    @darkiller5219 ปีที่แล้ว +17

    Do more python content please !!

  • @Adel-o7p
    @Adel-o7p 5 หลายเดือนก่อน

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

  • @pablozuta2402
    @pablozuta2402 ปีที่แล้ว +4

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

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

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

    • @Bombaclattt
      @Bombaclattt 11 หลายเดือนก่อน

      Can you share it? I need it for project 😭

    • @danielvarga_p
      @danielvarga_p 9 หลายเดือนก่อน

      ​@@Bombaclattt 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 9 หลายเดือนก่อน

      @@Bombaclattt
      TEST here is the code actually, to test if this can be done on TH-cam.
      import tkinter
      import customtkinter
      from pytube import TH-cam
      ## Something is not right here - The YT was age restricted required login
      def startDownload():
      try:
      ytLink = link.get()
      ytObject = TH-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 TH-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 - TH-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()

  • @ujjwal9638
    @ujjwal9638 ปีที่แล้ว +2

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

  • @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!

  • @AMindInOverdrive
    @AMindInOverdrive 11 หลายเดือนก่อน +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 11 หลายเดือนก่อน +1

      Thanks for the solution, had the same problem!

  • @chandrakala7302
    @chandrakala7302 ปีที่แล้ว +1

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

  • @toonverse3950
    @toonverse3950 4 หลายเดือนก่อน

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

  • @Sirveyor226
    @Sirveyor226 ปีที่แล้ว +2

    Love this. Please do more.

  • @holmseifert3469
    @holmseifert3469 ปีที่แล้ว +5

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

  • @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 👏

  • @facefamousee
    @facefamousee 3 หลายเดือนก่อน

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

  • @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

  • @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. 🙏🙏🙏

  • @cozyvibes6178
    @cozyvibes6178 ปีที่แล้ว

    17:00 Progress loading bar (start)

  • @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😭

  • @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 8 หลายเดือนก่อน

      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.

  • @matusturcan4525
    @matusturcan4525 2 หลายเดือนก่อน +3

    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 หลายเดือนก่อน +3

      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 TH-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 TH-camDL
      ydl_opts = {
      'format': 'best',
      'outtmpl': '%(title)s.%(ext)s'
      }
      with TH-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("TH-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.

    • @semiruu
      @semiruu 19 วันที่ผ่านมา +1

      @@byeloz2436 thank you that worked. Unfortunately the outpout isnt of the highest resolution, do you know how to add a line for that?

  • @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 10 หลายเดือนก่อน

      I named mine as TH-camDownloader.py

  • @elixivity6366
    @elixivity6366 ปีที่แล้ว +1

    Where does it download?

  • @louhudson1129
    @louhudson1129 18 วันที่ผ่านมา

    I'm using the IDLE Shell, python ver. 3.13.0, to build the program and I was able to create the titled window, the input box, and the button with no problem, however, all the program does when F5'd is immediately print "Download Complete!", then creates titled window with input box and button, then prints "TH-cam link is invalid" in the shell before any input has been, well, inputted. Going over all of the content I see no difference between the lines of code in the video and what I have in the shell. I am new to python and kind of a novice coder so just creating the window and related was really cool but I'm puzzled by the result. Since my code and the video code is the same could this be because something is not loaded correctly, ie a package is not installed completely or correctly?

  • @Hariharan-oq6lx
    @Hariharan-oq6lx 2 หลายเดือนก่อน

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

  • @Tags7048
    @Tags7048 3 หลายเดือนก่อน

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

  • @SayouPla
    @SayouPla 7 หลายเดือนก่อน +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!

  • @godsongee4748
    @godsongee4748 6 หลายเดือนก่อน +1

    Please where does the video download to ?

    • @GameAudio1
      @GameAudio1 5 หลายเดือนก่อน

      To the folder where the code is run from.

  • @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

  • @withoutmalicexo
    @withoutmalicexo 8 หลายเดือนก่อน

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

  • @eriklehman3175
    @eriklehman3175 6 หลายเดือนก่อน

    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

  • @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"

  • @T3ddyPro
    @T3ddyPro 3 หลายเดือนก่อน +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."

    • @riashik7426
      @riashik7426 12 วันที่ผ่านมา

      Same not able to download the vdo.........What may b the Solution for this.........🤔🤔🤔

  • @kevinmakumbe
    @kevinmakumbe 10 หลายเดือนก่อน

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

  • @Ohiostategenerationx
    @Ohiostategenerationx 8 หลายเดือนก่อน

    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?

  • @afrikanonyma
    @afrikanonyma 8 หลายเดือนก่อน

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

  • @kgaming7599
    @kgaming7599 11 หลายเดือนก่อน

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

  • @dispatersdance9691
    @dispatersdance9691 10 หลายเดือนก่อน

    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.

  • @paulthomas1052
    @paulthomas1052 ปีที่แล้ว +1

    Great demo - thanks :)

  • @MewtwoStar
    @MewtwoStar 10 หลายเดือนก่อน +1

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

  • @Hadi_Dizajie
    @Hadi_Dizajie 3 หลายเดือนก่อน

    Great project 💪🏻

  • @mister-med
    @mister-med ปีที่แล้ว

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

  • @bennikania813
    @bennikania813 10 หลายเดือนก่อน

    what theme package do you use?

  • @rahulbhatt1
    @rahulbhatt1 ปีที่แล้ว +2

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

  • @bryanwaweru2506
    @bryanwaweru2506 หลายเดือนก่อน +1

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

  • @thesouthsidedev1812
    @thesouthsidedev1812 ปีที่แล้ว

    You are a legend Ed

  • @anmolgupta763
    @anmolgupta763 ปีที่แล้ว +1

    Really loved it ...!

  • @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

  • @idk6465
    @idk6465 ปีที่แล้ว +2

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

    • @mz5234
      @mz5234 10 หลายเดือนก่อน

      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?

  • @yannickmelchior1774
    @yannickmelchior1774 5 หลายเดือนก่อน

    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

  • @mohamedlahrech178
    @mohamedlahrech178 ปีที่แล้ว

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

  • @Blackronin357
    @Blackronin357 11 หลายเดือนก่อน

    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 11 หลายเดือนก่อน

      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 5 หลายเดือนก่อน

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

  • @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

  • @subhanullahadelyar
    @subhanullahadelyar 7 หลายเดือนก่อน

    Wow! Amazing content.

  • @mz5234
    @mz5234 10 หลายเดือนก่อน

    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?

  • @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

  • @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

  • @Nvv58
    @Nvv58 7 หลายเดือนก่อน

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

  • @DevHub168
    @DevHub168 ปีที่แล้ว

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

  • @skaruts
    @skaruts 6 หลายเดือนก่อน

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

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

  • @البرنامجالعاممنالقاهرة
    @البرنامجالعاممنالقاهرة 11 หลายเดือนก่อน

    Good work man

  • @johnritter6864
    @johnritter6864 3 หลายเดือนก่อน

    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 2 หลายเดือนก่อน +1

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

  • @leborito
    @leborito 8 หลายเดือนก่อน

    What is the text editor being used?

    • @GameAudio1
      @GameAudio1 5 หลายเดือนก่อน

      VS Code

  • @payochannel1140
    @payochannel1140 ปีที่แล้ว

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

  • @R3KTPUBG
    @R3KTPUBG 5 หลายเดือนก่อน

    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

  • @kunalbishwal18
    @kunalbishwal18 ปีที่แล้ว

    how to solve downloading error whenever i am pasting the link and click on download it is showing downloading error

  • @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

  • @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

  • @ricokariuki3655
    @ricokariuki3655 ปีที่แล้ว

    great tutorial there

  • @olinafan4459
    @olinafan4459 ปีที่แล้ว

    having issues installing tkinter. getting modulenotfound error: no module named tkinter even after pip installing..

    • @ti6i
      @ti6i ปีที่แล้ว

      Idk if oyu fixed it, similar thing happened to him in the video, just change the python interpreter to a different one in vscode

  • @alirad8996
    @alirad8996 11 หลายเดือนก่อน

    thanks man

  • @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 😂

  • @gkhnylmz53
    @gkhnylmz53 ปีที่แล้ว

    I love it ! Thank you so much !

  • @gregoneill4391
    @gregoneill4391 หลายเดือนก่อน

    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

  • @OriginalRed5
    @OriginalRed5 ปีที่แล้ว

    Well done!!

  • @hunterking6427
    @hunterking6427 14 วันที่ผ่านมา

    Anybody run into an issue where every video you try and download gives error saying invalid URL? code seems to be fine, did youtube break pytube?

    • @bryanfrancotte5854
      @bryanfrancotte5854 10 วันที่ผ่านมา

      No youtube didn't break pytube 😀So to understand what is happening under the hood of your app you might want to print the error you are getting other wise you'll never be able to troubleshoot it 😉In order to do that you should write this in you try statement:
      except Exception:
      finishLabel.configure(text="something went wrong while downloading", text_color="red")
      print(traceback.format_exc())
      this will let you understand what is the issue

  • @ymn9738
    @ymn9738 หลายเดือนก่อน

    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.

  • @o1techacademy
    @o1techacademy ปีที่แล้ว

    Nice one bro.

  • @BLACKDREAMIO
    @BLACKDREAMIO ปีที่แล้ว +1

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

  • @Moustachebear123
    @Moustachebear123 6 หลายเดือนก่อน +2

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

    • @Tags7048
      @Tags7048 3 หลายเดือนก่อน

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

  • @chrisscha2088
    @chrisscha2088 2 หลายเดือนก่อน

    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 หลายเดือนก่อน

      same, did you fix it?

  • @aido2740
    @aido2740 8 หลายเดือนก่อน

    Can anybody help me find where it saved the downloaded file? I can't find it on my PC anywhere.

    • @_hkrm_
      @_hkrm_ 8 หลายเดือนก่อน +1

      shouldn't it be at the same path as where you run the script from?
      or it could depends on how pytube is configured?
      the path where you run the script from and the path where the script is are not the same.
      the path where you run the script from = if you're currently at the "D:\" path and then you call the script from there, it'll download the video to "D:\"
      the path where the script is = where you store the script. let's say it's in "C:\project\script.py", it should download the video to the same folder as the script.

  • @HNMCK
    @HNMCK ปีที่แล้ว

    Love the python content!

  • @DrCognitive
    @DrCognitive ปีที่แล้ว

    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.

    • @mz5234
      @mz5234 ปีที่แล้ว

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

    • @DrCognitive
      @DrCognitive ปีที่แล้ว

      @@mz5234 I actually resolved the issue and figured out how to make it save to my videos folder.