Created
December 22, 2016 15:04
-
-
Save packetchef/38525b1fbcadcaa3389b576ee531fc97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import urllib2 | |
import simplejson as json | |
url = 'http://ipinfo.io/json' | |
ipinfo = urllib2.urlopen(url).read() | |
jIP = json.loads(ipinfo) | |
print jIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment