Posted By

o0110o on 08/16/13


Tagged

file python download progress transfer percentage


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

o0110o


Display the download percentage of a file


 / Published in: Python
 

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

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.

Report this snippet  

You need to login to post a comment.