/ Published in: Python
Expand |
Embed | Plain Text
def get_country(ip): """ return the coutry of an ip adress """ result = urlfetch.fetch(url="http://api.wipmania.com/%s" % ip) if result.status_code == 200: return result.content else: get_country(ip)
You need to login to post a comment.
