Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BHG sub-recipes #11

Open
ssnepenthe opened this issue Jul 6, 2017 · 3 comments
Open

BHG sub-recipes #11

ssnepenthe opened this issue Jul 6, 2017 · 3 comments

Comments

@tekdoc
Copy link

tekdoc commented Nov 27, 2017

Too bad they don't have those sub recipes posted as individual recipes. If they did, a link to the recipe could be substituted for the "ingredient". Since that is not an option, when they say something like "1 recipe Cream Cheese Frosting or one 16-ounce can cream cheese frosting", you could just ignore the text leading up to and including the "or" which would leave you with the actual ingredient. The reader can then choose to track down a recipe for cream cheese frosting or purchase it ready made.

@ssnepenthe
Copy link
Owner Author

It is definitely a shame that they don't publish these separately. It looks like they might even be reusing some of them across multiple recipes, for example the sauce attached to:

In any case, thanks for the suggestion. I'm not sure how consistently it would work though. For example, look at that streusel toasts recipes where we get lines like:

  • 4 1 1/2-inch-thick slices French bread or challah bread
  • 2 tablespoons honey or granulated sugar

Any ideas on how to differentiate between basic ingredients like these and ones that come from separate recipes?

And what about the french toast recipe where there is no "or" attached to the sauce?

@tekdoc
Copy link

tekdoc commented Dec 4, 2017

How about checking to see if the "ingredient" before the "or" matches the "subRecipe__heading" class in the DOM? If there is a match, ignore it.

The no "or" case is more problematic since we don't know the volume or weight of "1 recipe Salted Caramel-Banana Sauce".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants