Location data

http://dev.maxmind.com/geoip/legacy/geolite/

Download GeoLite Country Binary / gzip and unpack it.
Usage https://dev.maxmind.com/geoip/legacy/downloadable/
Python instructions https://github.com/maxmind/geoip-api-python/blob/master/README.rst

Used also by WooCommerce, Piwik …

New version of the database https://dev.maxmind.com/geoip/geoip2/geolite2/