Created
August 11, 2015 16:24
-
-
Save bbelyeu/c2e2ba533e0fbac65506 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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