This is a IP2Location Python library that enables the user to find the country, region or state, city, latitude and longitude, US ZIP code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation, and usage type by IP address or hostname originates from. The library reads the geo location information from IP2Location BIN data file.
Supported IPv4 and IPv6 address.
For more details, please visit: http://www.ip2location.com/developers/python
- Python 2.2 and above
- Unzip the package.
- Execute python setup.py build
- Execute python setup.py install
python sample.py
python test.py
- Download free IP2Location LITE databases at http://lite.ip2location.com
- Download IP2Location sample databases at http://www.ip2location.com/developers
Email: support@ip2location.com.
URL: http://www.ip2location.com