

def parse_item(self, response):
    '\n        this site is a mess, with LOTS of inconsistencies in formatting. We will\n        try one other approach (in parse_item_alt1), but spending a bunch of\n        time to get their old recipes seems like a waste.\n        '
    hxs = HtmlXPathSelector(response)
    base_path = '//blockquote[@class="recipe hrecipe"]'
    recipes_scopes = hxs.select(base_path)
    if (len(recipes_scopes) < 1):
        self.log('calling alternate delishhh.com scraper')
        return self.parse_item_alt1(response)
    name_path = '//meta[@property="og:title"]/@content'
    description_path = '//meta[@property="og:description"]/@content'
    url_path = '//meta[@property="og:url"]/@content'
    image_path = '//meta[@property="og:image"][1]/@content'
    prepTime_path = './/*[@class="preptime"]/text()'
    cookTime_path = './/*[@class="cooktime"]/text()'
    recipeYield_path = './/*[@class="yield"]/text()'
    ingredients_path = './/div[@class="ingredient"]/*'
    datePublished_path = '//meta[@property="article:published_time"]/@content'
    dateModified_path = '//meta[@property="article:modified_time"]/@content'
    recipes = []
    for r_scope in recipes_scopes:
        il = RecipeItemLoader(item=RecipeItem())
        il.add_value('source', self.source)
        il.add_value('name', r_scope.select(name_path).extract())
        il.add_value('image', r_scope.select(image_path).extract())
        il.add_value('url', r_scope.select(url_path).extract())
        il.add_value('description', r_scope.select(description_path).extract())
        il.add_value('prepTime', r_scope.select(prepTime_path).extract())
        il.add_value('cookTime', r_scope.select(cookTime_path).extract())
        il.add_value('recipeYield', r_scope.select(recipeYield_path).extract())
        il.add_value('ingredients', r_scope.select(ingredients_path).extract())
        il.add_value('datePublished', base_path.select(datePublished_path).extract())
        il.add_value('dateModified', r_scope.select(dateModified_path).extract())
        recipes.append(il.load_item())
    return recipes

dataset/ETHPy150Open fictivekin/openrecipes/scrapy_proj/openrecipes/spiders/delishhh_spider.py DelishhhMixin.parse_item/VarMisuse@286/641 `r_scope`->`base_path`