I\'m downloading a huge set of files with following code in a loop:
try: urllib.urlretrieve(url2download, destination_on_local_filesystem) except KeyboardInt
If you're not limited to what's shipped with python out of the box, then the urlgrabber module might come in handy:
import urlgrabber urlgrabber.urlgrab(url2download, destination_on_local_filesystem, timeout=30.0)