From ed9c33b9cdb1b2b61e5b485a21916a353356b67c Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 28 Aug 2017 23:21:09 -0400 Subject: [tests] use another geoip api to avoid json decode problems --- tests/e2e/check_ip | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/e2e/check_ip b/tests/e2e/check_ip index 662ab2f0..f9059063 100755 --- a/tests/e2e/check_ip +++ b/tests/e2e/check_ip @@ -6,13 +6,13 @@ import sys DEMO_ISPS = ('Riseup Networks',) -url = 'https://wtfismyip.com/json' +url = 'https://ipapi.co/json' with urllib.request.urlopen(url) as _url: data = json.loads(_url.read().decode()) -isp = data['YourFuckingISP'] -ip = data['YourFuckingIPAddress'] +isp = data['org'] +ip = data['ip'] print('ISP >> %s' % isp) print('IP >> %s' % ip) -- cgit v1.2.3