julianpoy / RecipeClipper

A JavaScript util for scraping recipes from (almost) any website
GNU Affero General Public License v3.0
72 stars 3 forks source link

Fails when pulling multi-part recipe #72

Open mudnug opened 2 weeks ago

mudnug commented 2 weeks ago

When a recipe includes ingredients and instructions for an item as well as additional ingredients and instructions for an additional part like a glaze, the code performs poorly missing instructions and ingredients.

E.g., Used https://www.theoldhen.com/glazed-pecan-danish/

I'm not sure whether this would be a defect or a feature situation; whether the ingredients should be combined into one list will need to be decided, but my preference is 2 ingredient lists as this avoids issues when the same ingredient is used in both parts of the recipe.

I noticed https://www.tasteofhome.com/recipes/zucchini-apple-crisp/ is parsed correctly, This site has the directions one after another instead of ingredients 1, directions 1, and more ingredients 2 and then more directions 2.

mudnug commented 2 weeks ago

Perhaps a new import mode ("Clip Multi-part recipe") is needed?