Exemplo n.º 1
0
class WhoisClient(object):
    def __init__(self):
        self.cache = WhoisServerCache()

    def query(self, domain):
        data = WhoisData(domain)
        data.query(self.cache.query(domain))
        try:
            self.cache.save()
        except WhoisError, emsg:
            logger.debug(emsg)
            pass

        return data
Exemplo n.º 2
0
 def __init__(self):
     self.cache = WhoisServerCache()