<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_crawldelay (self, useragent):
 """Look for a configured crawl delay. @return: crawl delay in seconds or zero @rtype: integer >= 0 """

        for entry in self.entries:
            if entry.applies_to(useragent):
                return entry.crawldelay
        return 0