Skip to content

haithamaouati/Geolocate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geolocate

Geolocate an IP address using the ip-api.com JSON API. The script displays various details such as city, region, country, ISP, and more. Additionally, it saves the fetched information to a JSON file.

screenshot

Usage

To use the Geolocate script, follow these steps:

  1. Clone the repository:

    git clone https://github.com/haithamaouati/Geolocate.git
  2. Navigate to the Geolocate directory:

    cd Geolocate
  3. Run the script with a specified IP address:

    ./geolocate.sh <IP address>

    Replace <IP address> with the actual IP address you want to geolocate.

Dependencies

The script requires the following dependencies:

  • figlet: Program for making large letters out of ordinary text
  • curl: Command line tool for transferring data with URL syntax
  • jq: Command-line JSON processor
  • pv: Terminal-based tool for monitoring the progress of data through a pipeline

Make sure to install these dependencies before running the script.

Author

License

This Geolocate Bash script is open-source and available under the MIT License.

Feel free to contribute or report issues on the GitHub repository.