code: def get_crawldelay (self, useragent):
          
          for entry in self.entries:
              if entry.applies_to(useragent):
                  return entry.crawldelay
          return 0
docs: Look for a configured crawl delay.
  
          @return: crawl delay in seconds or zero
          @rtype: integer >= 0