How to use the ipinfo.IPInfo.lookupIPInfo function in ipinfo

To help you get started, we’ve selected a few ipinfo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Tribler / tribler / Tribler / Main / Worldmap / peer.py View on Github external
def lookupIPInfo(self):
        self.ip_info = IPInfo.lookupIPInfo(self.ip)   
github Tribler / tribler / Tribler / Main / Worldmap / peer.py View on Github external
def __init__(self, ABCTorrent):
        self.torrent = ABCTorrent
        self.statistics = None
        self.ip = str(socket.gethostbyname(socket.gethostname()))
        self.ip_info = IPInfo.lookupIPInfo(self.ip)
        self.display = False
        #print "create my peer"