Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline IP Lookup with GeoLite2 #152

Open
DenisCarriere opened this issue Sep 7, 2015 · 0 comments
Open

Offline IP Lookup with GeoLite2 #152

DenisCarriere opened this issue Sep 7, 2015 · 0 comments

Comments

@DenisCarriere
Copy link
Owner

Incorporate GeoLite2 for offline IP lookup.

Download free Maxmind DB
http://dev.maxmind.com/geoip/geoip2/geolite2/

>>> g = geocoder.geolite2('1.1.1.1', db='/path/to/GeoLite2-City.mmdb')

Need to add MaxMindDB as a dependency.

https://pypi.python.org/pypi/maxminddb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant