Infotool.py
Overview
This project retrieves the public IP address and geographical location of the user using Python. The script fetches IP-related data, such as city, region, country, and coordinates, using an API.
Features
Get the public IP address of the user
Retrieve location details (city, region, country, latitude, longitude)
Simple and lightweight implementation
Requirements
Ensure you have Python installed (Python 3.x recommended). Required dependencies are listed in requirements.txt.
Installation
Clone this repository:
git clone https://github.com/TUSHAR91066/scripts.git cd infotool.py
Install dependencies:
pip install -r requirements.txt
Usage
Run the script to get IP and location details:
python infotool.py
Example Output
Public IP: 123.45.67.89 City: New York Region: NY Country: United States Latitude: 40.7128 Longitude: -74.0060
Dependencies
The required libraries are listed in requirements.txt, which may include:
requests
License
This project is licensed under the MIT License.
Contributions
Feel free to contribute by opening issues or submitting pull requests!
Contact
For any queries, contact tusharsharmalandtoearth@gmail.com.