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:/
Using wget:
wget
custom_file_name = "/custom/path/custom_name.ext" wget.download(url, custom_file_name)
Using urlretrieve:
urllib.urlretrieve(url, custom_file_name)
urlretrieve also creates the directory structure if not exists.