/python-ipinfodb

A python library to consume ipinfodb web services version 3

Primary LanguagePython


KEY = 'SOME_KEY'
IP = '209.85.195.83'


ipinfodb_api = API(KEY)

data_dict = ipinfodb_api.GetCity(IP)
print data_dict

data_dict = ipinfodb_api.GetCountry(IP)
print data_dict