Display the download percentage of a file


/ Published in: Python
Save to your folder(s)

Place this snippent in your script, and call it like this:
urllib.urlretrieve(getFile, saveFile, reporthook=report)

Notice it is the 3rd argument that calls the function on each file that needs to be downloaded.

URL: http://stackoverflow.com/questions/51212/how-to-write-a-download-progress-indicator-in-python

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.