from json import load from urllib2 import urlopen my_ip = load(urlopen('http://jsonip.com'))['ip'] Seemingly the sole purpose of this domain is to return IP address in JSON.
from json import load
from urllib2 import urlopen
my_ip = load(urlopen('http://jsonip.com'))['ip']
Seemingly the sole purpose of this domain is to return IP address in JSON.