A Python 2.7 tool for tracking geographical locations based on IP addresses. This lightweight and efficient tracker fetches IP geolocation data such as city, region, country, and coordinates using the ipinfo.io
API.
- Track IP Geolocation: Input any IP address to find its geographical location.
- Automatic IP Detection: Automatically uses the device's public IP if no IP is provided.
- Detailed Information: Displays city, region, country, latitude, and longitude.
-
Clone the Repository:
git clone https://github.com/Jenderal92/ip-geolocation-tracker.git cd ip-geolocation-tracker
-
Install Dependencies:
Ensure you have Python 2.7 installed. Then, install the requiredrequests
library:pip install requests
-
Run the script in your terminal:
python ip_geolocation.py
-
Enter an IP address to track when prompted.
- Leave the input empty to automatically track your public IP.
-
View the output, which includes:
- IP Address
- City
- Region
- Country
- Latitude and Longitude
===========================================
IP Geolocation Tracker
Created By : Python 2.7
===========================================
Enter IP address to track or press Enter to track your IP: 8.8.8.8
Searching for location of IP: 8.8.8.8
Location Information:
IP Address: 8.8.8.8
City: Mountain View
Region: California
Country: US
Latitude: 37.386, Longitude: -122.084