Python3 download files urllib
As with urllib, an HTTP GET operation is the simplest use of urllib2. Pass the URL to urlopen() to get a “file-like” handle to the remote data. import urllib2 If the URL points to a local file, or a valid cached copy of the obje… urlretrieve() can not check the size of the data it has downloaded, and just returns it.