Als «download» getaggte Fragen

68
How to download a file using python in a 'smarter' way?

I need to download several files via http in Python. The most obvious way to do it is just using urllib2: import urllib2 u = urllib2.urlopen('http://server.com/file.html') localFile = open('file.html', 'w') localFile.write(u.read()) localFile.close() But I'll have to deal with the URLs that are...