diff --git a/modules/ipapi/module.py b/modules/ipapi/module.py index 6973220de8f60fb53abaac5343c8cb36172f7783..c0a77dea4ac958629e405ce2f03d9d24c9dc72b6 100644 --- a/modules/ipapi/module.py +++ b/modules/ipapi/module.py @@ -37,7 +37,7 @@ class IpapiModule(Module, CapGeolocIp): BROWSER = Browser def get_location(self, ipaddr): - res = self.browser.location('http://ip-api.com/json/%s' % ipaddr.encode('utf-8')) + res = self.browser.location(u'http://ip-api.com/json/%s' % ipaddr) jres = json.loads(res.text) if "status" in jres and jres["status"] == "fail": diff --git a/tools/py3-compatible.modules b/tools/py3-compatible.modules index 7672d7aa642c227dbac8eb1ee8d391022b9d2403..0fee643d22684b821d81b91a312c16cff0853193 100644 --- a/tools/py3-compatible.modules +++ b/tools/py3-compatible.modules @@ -88,6 +88,7 @@ imgur indeed infomaniak ing +ipapi ipinfodb jcvelaux jirafeau