code: def search_tor_node(self, ip):
          
          data = {}
          tmp = {}
          present = datetime.utcnow().replace(tzinfo=pytz.utc)
          for line in self._get_raw_data().splitlines():
              params = line.split(' ')
              if params[0] == 'ExitNode':
                  tmp['node'] = params[1]
              elif params[0] == 'ExitAddress':
                  tmp['last_status'] = params[2] + 'T' + params[3] + '+0000'
                  last_status = parse(tmp['last_status'])
                  if (self.delta is None or
                     (present - last_status) < self.delta):
                      data[params[1]] = tmp
                  tmp = {}
              else:
                  pass
          return data.get(ip, {})
docs: Lookup an IP address to check if it is a known tor exit node.
  
          :param ip: The IP address to lookup
          :type ip: str
          :return: Data relative to the tor node. If `ip`is a tor exit node
                   it will contain a `node` key with the hash of the node and
                   a `last_status` key with the last update time of the node.
                   If `ip` is not a tor exit node, the function will return an
                   empty dictionary.
          :rtype: dict