Python Forum
wget progress bar - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: wget progress bar (/thread-10109.html)



wget progress bar - anasrocks - May-13-2018

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')



RE: wget progress bar - heiner55 - Jun-06-2019

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'