Skip to content

Instantly share code, notes, and snippets.

@Sitebase

Sitebase/sh

Created Nov 13, 2015
Embed
What would you like to do?
curl -s http://www.telize.com/geoip/46.19.37.108 | python -c 'import sys, json; print json.load(sys.stdin)["country"]'
Netherlands
curl -s http://api.statdns.com/x/46.19.37.108 | python -c 'import sys, json; print json.load(sys.stdin)["answer"][0]["rdata"]'
statdns.net.
curl -s http://www.telize.com/geoip/46.19.37.108 | python -mjson.tool
{
"area_code": "0",
"asn": "AS196752",
"continent_code": "EU",
"country": "Netherlands",
"country_code": "NL",
"country_code3": "NLD",
"dma_code": "0",
"ip": "46.19.37.108",
"isp": "Tilaa V.O.F.",
"latitude": 52.5,
"longitude": 5.75,
"timezone": "Europe/Amsterdam"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment