Created
September 27, 2017 06:23
-
-
Save dynax60/41886b9a68e51eddb10f3d009fc759bb 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
import json, requests | |
r = requests.get('http://ifconfig.co/json') | |
data = json.loads(r.content) | |
print("") | |
for key, val in data.items(): | |
if key in ['ip_decimal', 'hostname']: | |
continue | |
print("{0}: {1}".format(key, val)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment