/ipfetch

Primary LanguagePythonMIT LicenseMIT

IP Information Fetcher

This Python script fetches information about an IP address using the ip-api.com API.

Features

  • Fetches detailed information about an IP address.
  • Handles errors gracefully.

Installation

  1. Make sure you have Python installed on your system.

  2. Clone this repository:

    git clone https://github.com/liocasio/ipfetch.git
  3. Navigate to the project directory:

    cd ipfetch
  4. Install the required dependencies:

    pip install requests

Usage

Run the script from the command line and provide an IP address as an argument:

python ipfetch.py <ip_address>

Replace <ip_address> with the IP address you want to fetch information for.

Example

python ipfetch.py 8.8.8.8

Contributing

If you'd like to contribute to this project, please follow these steps:

Fork the repository.
Create a new branch (git checkout -b feature-branch).
Make your changes.
Commit your changes (git commit -am 'Add new feature').
Push to the branch (git push origin feature-branch).
Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.