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
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