Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import os
- import urllib2
- import json
- print("#####################################################")
- os.system("figlet IP Tracker")
- print("#####################################################")
- while True:
- ip=raw_input("What 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(" As: " + values['as'])
- print(" Country: " + values['country'])
- print(" Status: " + values['status'])
- print(" Region: " + values['region'])
- print(" Time Zone: " + values['timezone'])
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement