/ Published 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.
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