From 13628c144cfaba005acb70f3b39a9f4a86c1b9cc Mon Sep 17 00:00:00 2001 From: David Bailey Date: Tue, 15 Sep 2015 11:02:36 -0700 Subject: [PATCH] Update iphorse.py --- iphorse.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iphorse.py b/iphorse.py index 01b07e9..d401632 100644 --- a/iphorse.py +++ b/iphorse.py @@ -2,3 +2,6 @@ r = requests.get('http://iphorse.com/json.php') r.json()['remote_addr'] + +import yaml +print yaml.safe_dump(r.json(), default_flow_style=False)