cara membuat pelacak IP di python

import os
import urllib2
import jsonwhile True:
ip=raw_input (“what is your target ip:”)
url = “http://ip-api.com/json/”
response = urllib2.urlopen (url +ip)
data = response.read()
values = json.loads(data)print(“IP:” + values [‘query’])
print(“City:” + values [‘city’])
print(“ISP:” + values [‘isp’])
print(“Country:” + values [‘country’])
print(“Region:” + values [‘region’])
print(“Time Zoen:” + values [‘timezone’])break
Cryptic