Current Version: 1.0
Author: Trix Cyrus
Copyright: © 2024 Trixsec Org
Maintained: Yes
A Python script that fetches and displays geolocation information for an IP address. The information includes details such as country, city, latitude, longitude, timezone, and connection data. The results are displayed with bold and colored formatting for easy readability.
- Fetches geolocation data for a given IP address.
- Displays information like country, city, region, continent, timezone, and more.
- Connection details such as ASN, ISP, and domain.
- Bold and colored terminal output for better visibility.
- Python 3.6 or later.
requests
library for making HTTP requests.termcolor
library for terminal color output.
- Clone the repository:
git clone https://github.com/TrixSec/GeoIP.git
cd GeoIP
- Install the required dependencies:
pip install -r requirements.txt
Or manually install the required libraries:
pip install requests termcolor
Run the script from the terminal with the --ip
argument to specify the IP address you want to look up.
python geoip.py --ip <IP_ADDRESS>
python geoip.py --ip 1.1.1.1
- Ip: The IP address being looked up.
- Success: Whether the query was successful.
- Type: The type of IP address (IPv4 or IPv6).
- Continent: The continent where the IP is located.
- Country: The country of the IP address.
- City: The city of the IP address.
- Latitude / Longitude: Geolocation coordinates.
- Connection: Details about the IP's ASN (Autonomous System Number), organization, ISP (Internet Service Provider), and domain.
- Timezone: Timezone information, including UTC offset and current time.