Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.68 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.68 KB

IP2Location-Python-C

This is a IP2Location Python-C library that enables the user to find the country, region or state, city, latitude and longitude, 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, usage type, address type and IAB category by IP address or hostname originates from. The library used the IP2Location C Library to read the geo location information from IP2Location BIN data file.

Supported IPv4 and IPv6 address.

This library required the IP2Location C Library to work. You can install it from here.

Requirements

  1. Python 2.7 and above
  2. IP2Location C Library.

Installation

  1. Install the IP2Location C Library.
  2. Download and unzip the package.
  3. Execute python setup.py build.
  4. Execute python setup.py install.

Testing

Run python sample.py in your terminal.

IP2Location BIN Databases

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