forked from 0x2620/pandora
save_url
This commit is contained in:
parent
4fc3842112
commit
148912ab37
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ def update_geoip(force=False):
|
||||||
if not os.path.exists(path) or force:
|
if not os.path.exists(path) or force:
|
||||||
url = 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz'
|
url = 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz'
|
||||||
print 'download', url
|
print 'download', url
|
||||||
ox.net.saveUrl(url, "%s.gz"%path)
|
ox.net.save_url(url, "%s.gz"%path)
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
os.unlink(path)
|
os.unlink(path)
|
||||||
os.system('gunzip "%s.gz"' % path)
|
os.system('gunzip "%s.gz"' % path)
|
||||||
|
|
Loading…
Reference in a new issue