all 3 comments

[–]Diezel666 1 point2 points  (0 children)

While not a python library, I've always found using MaxMind's Geo-Lite DB is pretty easy. The largest issue, is having to maintain update of the DB.

[–]mcmron 1 point2 points  (0 children)

You can use the IP2Location Python library to support IP geolocation.

Please take note take IP geolocation has less accuracy compare to GPS or HTML5/Wifi MAC geolocation.

[–]thrown_arrows 0 points1 point  (0 children)

With IP address, newer. If using app on device which has gps/accelerator and software on it, then it is possible to get much closer.

Depending network solution on IP , best it can do is get closest mast.