Python Forum

Full Version: wget progress bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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')
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'