(self, ip)
return data
Request info on an IPv4
Request info on an IPv4
Request info on an IPv4
def get_ip_info(self, ip):
        """
        Request info on an IPv4
        """
        data = self._request("/ipquery/%s" % ip)
        for d in ["pas", "pash", "act", "acth"]:
            if d in data:
                for dd in data[d]:
                    if "t" in dd:
                        dd["date"] = datetime.fromtimestamp(dd["t"])
        return data
def get_ip_info ( self , ip ) : data = self . _request ( "/ipquery/%s" % ip ) for d in [ "pas" , "pash" , "act" , "acth" ] : if d in data : for dd in data [ d ] : if "t" in dd : dd [ "date" ] = datetime . fromtimestamp ( dd [ "t" ] ) return data