There is a site with logs and each log is in zip (for space saving). How can I download it from the site?
( urllib / urllib2 )(?)
You can use urllib.urlretrieve
this way:
urlretrieve(your_url, your_zip_path)
You have to consider something like:
import urllib2
response = urllib2.urlopen('http://www.website.com/log.zip')
zipcontent= response.read()
and now you write the file to disk :)
with open("log.zip", 'w') as f:
f.write(zipcontent)
You can also check: Python and urllib
download a zip file to a local drive and extract all files to a destination folder using python 2.5