Python Forum
python download manager with progressbar (not gui)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python download manager with progressbar (not gui)
#1
Big Grin 
I am trying to make a python program to download files . (simple download manager)

And i want it to be simple and it should have a progressbar ,also displaying the file size . LIKE THE PHOTO BELOW

I tried code like this :

import urllib.request

def downloadfile():
 url = input("Enter download link : ")
 nm = input("Enter name with extention : ")
 urllib.request.urlretrieve(url,nm)

downloadfile()```
**Image is screenshot of cmd when installing python module**

[Image: sDnJm.png]
https://i.stack.imgur.com/sDnJm.png
Reply
#2
tqdm works fine for this.
I have tutorial here.
There i also use Click my clear favorite for making command line interfaces.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python multiprocessing to download sql table mg24 5 1,473 Oct-31-2022, 03:53 PM
Last Post: Larz60+
  download with internet download manager coral_raha 0 2,943 Jul-18-2021, 03:11 PM
Last Post: coral_raha
  How to create an app manager _ShevaKadu 8 3,792 Nov-01-2020, 12:47 PM
Last Post: _ShevaKadu
  download pubmed PDFs using pubmed2pdf in python Wooki 8 5,467 Oct-19-2020, 03:06 PM
Last Post: jefsummers
  How can I download Python files from GitHub? bitcoin10mil 2 2,831 Aug-26-2020, 09:03 PM
Last Post: Axel_Erfurt
  Python Download GillietheSquid 2 2,027 Mar-27-2020, 09:15 PM
Last Post: GillietheSquid
  How to get python to download YouTube videos in the background? Pythenx 11 10,710 Mar-25-2019, 04:57 AM
Last Post: samsonite
  download python 3.7.0 mainbane 1 2,763 Aug-09-2018, 06:51 PM
Last Post: buran
  Context Manager (with) wyattbiker 3 3,778 Jul-23-2018, 03:19 PM
Last Post: snippsat
  What Version of Python I should download G70115 1 2,642 Apr-28-2018, 04:44 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020