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

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

src/r/e/Recipe-to-Markdown-HEAD/rescrape/site/FoodNetworkComScraper.py   Recipe-to-Markdown(Download)
    def ingredients(self):
        #<li itemprop="ingredients">
        ings = self.findAll("li", {"itemprop": 'ingredients'})
        for ing in ings:
            yield ing.string.encode("ascii", "ignore").strip()

src/r/e/Recipe-to-Markdown-HEAD/rescrape/site/FoodComScraper.py   Recipe-to-Markdown(Download)
    def ingredients(self):
        ings = self.findAll("span", {"class": 'ingredient'})
        for ing in ings:
            dirs = map(lambda x: x.encode("ascii", "ignore").strip(), ing.findAll(text=True))
            dirs = [d for d in dirs if d != ""]

src/r/e/Recipe-to-Markdown-HEAD/rescrape/site/PioneerWomanScraper.py   Recipe-to-Markdown(Download)
    def ingredients(self):
        ings = self.findAll("span", {"itemprop": 'ingredient'})
        for ing in ings:
            amt = ing.find("span", {"itemprop": "amount"}).string.encode(
                "ascii", 'ignore').strip()