Skip to content

This module is a Python Library with C that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage type, address type and IAB category that any IP address or host name originates from. https://www.ip2lo…

License

Notifications You must be signed in to change notification settings

ip2location/ip2location-python-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This module is a Python Library with C that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage type, address type and IAB category that any IP address or host name originates from. https://www.ip2lo…

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages