code: def filter_matching(self, urls):
          
          for url in urls:
              if urlparse(url).hostname in self:
                  yield url
docs: Get URLs with hosts matching any listed ones.
  
          :param urls: an iterable containing URLs to filter
          :returns: a generator yielding matching URLs
          :raises InvalidURLError: if there are any invalid URLs in
          the sequence