A Python tool to display geolocation information in the traceroute.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ip2locationpy-8.1.1.tar.gz
.
File metadata
- Download URL: ip2locationpy-8.1.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f97793890733a5a6369d0d59f1cf77ba68cf921dd57b33b4439efe4affe5f00 |
|
MD5 | f07786a352bfba50c2aa9fd57c9d304e |
|
BLAKE2b-256 | dc7dd35381683606e3a88893d45720cf598cd63d33e8df40304a064c89f9662e |
File details
Details for the file IP2Locationpy-8.1.1-py3-none-any.whl
.
File metadata
- Download URL: IP2Locationpy-8.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f51c10862ce0410466abda8c4d4eeaa9037cfa5dcf9b7a0a03ed3d8daa1d37ec |
|
MD5 | f5d3b47fdf9ca18957ad18ac80208c7e |
|
BLAKE2b-256 | 5344be877f037144009a19795c4a2227958a2debddc961570f6a19cab474c338 |