IP2Locationpy
IP2Locationpy is a Python tool allowing user to get IP address information such as country, region, city, latitude, longitude, zip code, time zone, ISP, domain name, connection type, area code, weather, mobile network, elevation, usage type, address type, IAB category, district, autonomous system number (ASN) and autonomous system (AS) by IP address (IPv4 or IPv6) from IP2Location BIN database.
For more details, please visit: https://www.ip2location.com/free/applications
Installation
You can install this tool by using pip in Windows or Linux. To install this tool in Windows and Linux, just type pip install IP2Locationpy in your console and IP2Location-Lookup will be installed in your machine.
Note: This tool require IP2Location library to work with. If pip did not install the dependency for you, you can manually install it by using pip install IP2Location.
Usage
Query an IP address and display the result
ip2locationpy -d [IP2LOCATION BIN DATA PATH] --ip [IP ADDRESS]
Query all IP addresses from an input file and display the result
ip2locationpy -d [IP2LOCATION BIN DATA PATH] -i [INPUT FILE PATH]
Query all IP addresses from an input file and display the result in XML format
ip2locationpy -d [IP2LOCATION BIN DATA PATH] -i [INPUT FILE PATH] --format XML
Download More Sample Databases
wget https://www.ip2location.com/downloads/sample.bin.db26.zip
unzip samples-db26.zip
Support
Email: support@ip2location.com URL: https://www.ip2location.com
Metadata
Release files for IP2Locationpy 8.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ip2locationpy-8.1.2.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| IP2Locationpy-8.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / ip2locationpy-8.1.2.tar.gz
| Download URL | ip2locationpy-8.1.2.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ef512f1ed70768ffaf0e5beb2ebd907dbbb340e8a7a143357cbb6a4b8edee88
|
|
BLAKE2b-256 checksum How to use checksums |
c325a4ddba15f5e126a022b73c7f1b640e363dd3e3a38bff47aa4889dfcfed98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / IP2Locationpy-8.1.2-py3-none-any.whl
| Download URL | IP2Locationpy-8.1.2-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f429bd59f78d5ccfb2332aca50b6e0bbc5887c0733bba5f42240d93f1407af84
|
|
BLAKE2b-256 checksum How to use checksums |
7c632bc8c73ee2b0244aed3db27cc69a74a173d875f2e0d605e17ad4fa6a3f92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|