Firstly the response you are getting is not JSON. If you see the response header
then you can see it is
content-type: text/html; charset=UTF-8
.
Now that it is not JSON you have to treat it as text.
r = requests.get(url)
ipaddress = r.text if r.status_code == 200 else ''
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…