Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wget progress bar
#1
Hello all,
I am a new member and newbie in python, trying to write a simple code that downloads a file and put it in a directory with wget, looking to add download progress with wget, any help?

import wget

print ('Download starting ...')

url = 'http://speedtest.tele2.net/100MB.zip'
wget.download (url, 'D:\Python Project\100MB.zip')
Reply
#2
Your script works on my PC (Debian 10)
and I get a progress bar.

You have to add "r" before the string:
r'D:\Python Project\100MB.zip'
or double "\":
'D:\\Python Project\\100MB.zip'
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Progress bar bnadir55 1 1,781 Apr-11-2022, 01:52 PM
Last Post: deanhystad
  ModuleNotFoundError 'wget' Tuxedo 2 2,584 Feb-05-2021, 03:03 AM
Last Post: Tuxedo
  Progress Indicator for Xmodem 0.4.6 KenHorse 1 1,930 Jan-30-2021, 07:12 PM
Last Post: bowlofred
  How can I add a progress bar for my software? aquerci 8 3,690 Nov-16-2019, 04:20 PM
Last Post: aquerci
  Progress Finished Question malonn 32 17,218 May-23-2018, 02:43 AM
Last Post: malonn
  how to progress with py jakegold98 1 2,596 Dec-05-2017, 02:58 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

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