protected function applyScraperConfig() { parent::applyScraperConfig(); $this->config['recipeCategories']['locations'] = ['_text']; $this->config['recipeCuisines']['locations'] = ['_text']; $this->config['recipeIngredients']['selector'] = '.ingredient-group strong, [itemprop="ingredients"]'; $this->config['recipeInstructions']['selector'] = '.preparation-group strong, .preparation-step'; }
protected function applyScraperConfig() { parent::applyScraperConfig(); $this->config['description']['selector'] = '[itemprop="description"]'; $this->config['image']['selector'] = '.recipePartRecipeImage img'; $this->config['recipeIngredients']['selector'] = '.recipePartIngredientGroup h2, [itemprop="ingredients"]'; $this->config['url']['selector'] = '[rel="canonical"]'; }
protected function applyScraperConfig() { parent::applyScraperConfig(); $this->config['description']['selector'] = '.recipe-page--body-content p'; $this->config['image']['selector'] = '[property="og:image"]'; $this->config['recipeIngredients']['selector'] = '.recipe-ingredients-group-header, [itemprop="ingredients"]'; $this->config['recipeInstructions']['selector'] = '[itemprop="recipeInstructions"] li'; $this->config['url']['selector'] = '[rel="canonical"]'; }
protected function applyScraperConfig() { parent::applyScraperConfig(); // They are labeling times as cookingMethod so just use a fake selector. $this->config['cookingMethod']['selector'] = '.fake-selector'; $this->config['image']['selector'] = '[property="og:image"]'; $this->config['name']['selector'] = 'h1[itemprop="name"]'; $this->config['recipeInstructions']['selector'] = '[itemprop="recipeInstructions"] li'; }
protected function applyScraperConfig() { parent::applyScraperConfig(); $this->config['image']['selector'] = '[itemprop="image"] + noscript > img'; $this->config['recipeIngredients']['selector'] = '.col1 .components-group-header, [itemprop="ingredients"]'; $this->config['recipeInstructions']['selector'] = '.directions-item-text'; $this->config['recipeYield']['selector'] = '[itemprop="recipeYield"], .mslo-credits:last-child'; $this->config['url']['selector'] = '[rel="canonical"]'; }
protected function applyScraperConfig() { parent::applyScraperConfig(); $this->config['description']['selector'] = 'meta[name="description"]'; // Use final item in breadcrumb trail so we don't have to strip byline. $this->config['name']['selector'] = '.breadcrumbs li:last-child'; $this->config['recipeIngredients']['selector'] = '[itemtype*="schema.org/Recipe"] .ingredients li'; $this->config['recipeInstructions']['selector'] = '[itemtype*="schema.org/Recipe"] .preparation p'; $this->config['url']['selector'] = 'link[rel="canonical"]:last-of-type'; }
protected function applyScraperConfig() { parent::applyScraperConfig(); $this->config['author']['selector'] = '[itemprop="author"] [itemprop="name"]'; // I don't want the description they actually provide. $this->config['description']['selector'] = '.fake-selector'; $this->config['image']['selector'] = '.photo-video [itemprop="image"]'; $this->config['recipeIngredients']['selector'] = '.ingredients li'; $this->config['recipeInstructions']['selector'] = '[itemprop="recipeInstructions"] .subtitle, .recipe-directions-list li'; }
protected function applyScraperConfig() { parent::applyScraperConfig(); $this->config['image']['selector'] = 'meta[itemprop="image"]'; $this->config['name']['selector'] = 'h1[itemprop="name"]'; $this->config['recipeIngredients']['selector'] = '[itemprop="ingredients"]'; $this->config['recipeInstructions']['selector'] = '.rd_directions .rd_name'; $this->config['recipeYield']['selector'] = '[itemprop="recipeyield"]'; $this->config['url']['selector'] = '[rel="canonical"]'; }
protected function applyScraperConfig() { parent::applyScraperConfig(); $this->config['recipeIngredients']['selector'] = '[itemprop="ingredients"]'; $this->config['recipeInstructions']['selector'] = '[itemprop="recipeInstructions"] li'; }