Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/r/e/Recipe-to-Markdown-HEAD/rescrape/site/FoodNetworkComScraper.py   Recipe-to-Markdown(Download)
    def prep_time(self):
        duration = self.find("meta", {"itemprop": "prepTime"})["content"].encode("ascii", 'ignore')
        return self.parse_duration(duration)
 
    def cook_time(self):
        duration = self.find("meta", {"itemprop": "cookTime"})["content"].encode("ascii", 'ignore')
        return self.parse_duration(duration)
    def total_time(self):
        duration = self.find("meta", {"itemprop": "totalTime"})["content"].encode("ascii", 'ignore')
        return self.parse_duration(duration)
 
    def ingredients(self):

src/r/e/Recipe-to-Markdown-HEAD/rescrape/site/FoodComScraper.py   Recipe-to-Markdown(Download)
    def prep_time(self):
        duration = self.find("meta", {"itemprop": "prepTime"})["content"].encode("ascii", 'ignore')
        return self.parse_duration(duration)
 
    def cook_time(self):
        duration = self.find("meta", {"itemprop": "cookTime"})["content"].encode("ascii", 'ignore')
        return self.parse_duration(duration)
    def total_time(self):
        duration = self.find("meta", {"itemprop": "totalTime"})["content"].encode("ascii", 'ignore')
        return self.parse_duration(duration)
 
    def ingredients(self):

src/r/e/Recipe-to-Markdown-HEAD/rescrape/site/SimplyRecipesScraper.py   Recipe-to-Markdown(Download)
    def prep_time(self):
        # span class="preptime" itemprop="prepTime"
        duration = self.find("span", {"itemprop": "prepTime"})["content"].encode("ascii", 'ignore')
        return self.parse_duration(duration)
 
    def cook_time(self):
        duration = self.find("span", {"itemprop": "cookTime"})["content"].encode("ascii", 'ignore')
        return self.parse_duration(duration)