This Python script fetches information about an IP address using the ip-api.com API.
- Fetches detailed information about an IP address.
- Handles errors gracefully.
-
Make sure you have Python installed on your system.
-
Clone this repository:
git clone https://github.com/liocasio/ipfetch.git
-
Navigate to the project directory:
cd ipfetch
-
Install the required dependencies:
pip install requests
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.
python ipfetch.py 8.8.8.8
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.
This project is licensed under the MIT License - see the LICENSE file for details.