CLI "tool" and a bash "library" for getting and parsing users geolocation data
474
CLI geolocation tool using bashclient for HTTP requests abusing freegeoip.net API.
Output can be only coordinates, only location, CSV, JSON or XML. For prettier JSON and XML output tool will try to use jq and xmllint.
bash, 3 or laternetcat to handle socket connectionsGit clone or copy paste whereami.sh and bashclient.sh or docker pull vandot/whereami
You can use whereami as a CLI tool with arguments.
$ ./whereami.sh
$ 144.8186,120.4681
$ ./whereami.sh json
$ {"ip":"","country_code":"","country_name":"","region_code":"","region_name":"","city":"","zip_code":"","time_zone":"","latitude":144.8186,"longitude":120.4681,"metro_code":0}
$ ./whereami.sh human
$ CODE,COUNTRY,CITY
$ docker run --rm vandot/whereami
$ 144.8186,120.4681
Content type
Image
Digest
Size
3.4 MB
Last updated
almost 6 years ago
docker pull vandot/whereami