Skip to content

A simple Python script to fetch and display IP address details using ip-api.com. It prints the results in color and saves a report to a file.

License

Notifications You must be signed in to change notification settings

gnatykdm/ipchecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌍 IP Checker

Python License

📖 Description

IP Checker is a simple Python script that retrieves IP address details using ip-api.com.
It prints the results in color and saves a report to a file.

🚀 Features

✔️ Fetches geolocation details of an IP address
✔️ Displays results in colorized output (via colorama)
✔️ Saves the report to a text file
✔️ Supports custom file paths

🔧 Installation

  1. Clone the repository
    git clone https://github.com/gnatykdm/ipchecker.git
    cd ipchecker/checker/src
  2. Install dependencies
    pip install -r requirements.txt

🛠️ Usage

python check.py <ip> <path>

🔹 Example: Save the report in the current directory

python check.py 62.40.98.72 raport.txt

🔹 Example: Save the report in a custom folder

python check.py 62.40.98.72 /home/user/reports

📜 Example Output

[INFO] IP Information: 62.40.98.72

     Country: United Kingdom
     City: Cambridge
     ISP: GEANT European Backbone
     Latitude: 52.1917
     Longitude: 0.133608

[INFO] Report saved to reports/raport.txt

📄 License

This project is licensed under the MIT License.

About

A simple Python script to fetch and display IP address details using ip-api.com. It prints the results in color and saves a report to a file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages