Name | Modified | Size | Downloads / Week |
---|---|---|---|
ipv6-country.bin | 2018-06-02 | 2.2 MB | |
ip-country.bin | 2018-06-02 | 903.7 kB | |
country_test_ipv4_data.txt | 2018-06-02 | 131 Bytes | |
test.py | 2018-06-02 | 1.4 kB | |
setup.py | 2018-06-02 | 332 Bytes | |
sample.py | 2018-06-02 | 861 Bytes | |
readme.md | 2018-06-02 | 1.4 kB | |
pkg-info | 2018-06-02 | 283 Bytes | |
license.txt | 2018-06-02 | 1.1 kB | |
ip2location.py | 2018-06-02 | 15.2 kB | |
changelog | 2018-06-02 | 1.3 kB | |
authors | 2018-06-02 | 38 Bytes | |
license-cc-by-4.0.txt | 2018-06-02 | 19.0 kB | |
readme_lite.txt | 2018-06-02 | 1.4 kB | |
Totals: 14 Items | 3.1 MB | 0 |
IP2Location 8.0.0
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: https://www.ip2location.com/developers/python
Requirements
- Python 2.2 and above
Installation
Testing
python sample.py
python test.py
Sample BIN Databases
- Download free IP2Location LITE databases at https://lite.ip2location.com
- Download IP2Location sample databases at https://www.ip2location.com/developers
IPv4 BIN vs IPv6 BIN
- Use the IPv4 BIN file if you just need to query IPv4 addresses.
- Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.
Support
Email: support@ip2location.com.
URL: https://www.ip2location.com