Although not all recipes provide groupings/section headings for the ingredients, we do want the output of scraper.ingredient_groups to include a complete list of ingredients in all cases.
That means that for recipes without grouped ingredients, there should be a single placeholder grouping with purpose=None.
Pre-filing checks
The URL of the recipe(s) that are not being scraped correctly
The results you expect to see
Although not all recipes provide groupings/section headings for the ingredients, we do want the output of
scraper.ingredient_groups
to include a complete list of ingredients in all cases.That means that for recipes without grouped ingredients, there should be a single placeholder grouping with
purpose=None
.(there's some further information on this in the ingredient group developer documentation)
The results (including any Python error messages) that you are seeing
Calling the
.ingredient_groups()
method on the scraper produces an empty list.cc @jacksgreen