Table of Contents
Specifically, you can get the following information for any IP address: city, region (name & code), country (name & code), continent, postal code / zip code, latitude, longitude, timezone, utc offset, european union (EU) membership, country calling code, country capital, country tld (top-level domain), currency (name & code), area & population of the country, languages spoken, asn and organization
- get your own or other ip address
- save result to any of following format
- json
- jsonp
- yaml
- xml
- csv
- don't show result on screen, just save result to file
python ipX.py --help
python ipX.py --myip
python ipX.py --ip 8.8.8.8
here 8.8.8.8 is ip address which i want to find
python ipX.py --ip 8.8.8.8 --output result.json
this will save result to "result.json" file.
note: if you don't specify filename or file extension(here in this example, json), by default it going to save file as result.json
π€ Ali Shahid
- Website: click here
- Github: @shaeinst
This project is MIT licensed.