Skip to content

Instantly share code, notes, and snippets.

@bbelyeu
Created August 11, 2015 16:24
Show Gist options
  • Save bbelyeu/c2e2ba533e0fbac65506 to your computer and use it in GitHub Desktop.
Save bbelyeu/c2e2ba533e0fbac65506 to your computer and use it in GitHub Desktop.
download_database = subprocess.Popen((
"rm -rf GeoIP* &&"
"curl http://download.maxmind.com/app/geoip_download?" +
"edition_id=133\&suffix=tar.gz\&license_key={maxmind_key} " +
">GeoIPCity.dat.tar.gz 2>/dev/null && " +
"tar xzf GeoIPCity.dat.tar.gz").format(
maxmind_key=MAXMIND_LICENSE_KEY
), shell=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment