|
|
@ -61,7 +61,7 @@ def download(url, dest):
|
|
|
|
print "Downloading from %s"%(url)
|
|
|
|
print "Downloading from %s"%(url)
|
|
|
|
file_name = url.split('/')[-1]
|
|
|
|
file_name = url.split('/')[-1]
|
|
|
|
u = urllib2.urlopen(url)
|
|
|
|
u = urllib2.urlopen(url)
|
|
|
|
f = open(dest, 'w')
|
|
|
|
f = open(dest, 'wb')
|
|
|
|
meta = u.info()
|
|
|
|
meta = u.info()
|
|
|
|
file_size = int(meta.getheaders("Content-Length")[0])
|
|
|
|
file_size = int(meta.getheaders("Content-Length")[0])
|
|
|
|
if quiet == 0:
|
|
|
|
if quiet == 0:
|
|
|
|