Re:Show HN: I had issues organizing my favorite recipes, so ...
by fastturtle on Monday October 07, 2019 @04:43AM
(#21178678)
That sounds like a fun project, where did you get the data from?
Re:Show HN: I had issues organizing my favorite recipes, so ...
by 0xfaded on Monday October 07, 2019 @05:31AM
(#21178915)
Don't really want to say because of legality of scraping, but it was a big one with convenient data attributes on the ingredient elements. Shouldn't be too hard to figure out.
Re:Show HN: I had issues organizing my favorite recipes, so ...
by KurtMueller on Monday October 07, 2019 @08:17AM
(#21179882)
C'mon now... talking about data attributes on a html element is not illegal.
allrecipes.com has data attributes on their ingredient list. seriouseats.com has css classes on their ingredients. those are two that i just checked on the spot.
Although my goal was to find recipes that shared ingredients to cut back on wastage. I used a constraint solver (https://developers.google.com/optimization) and asked it to produce 5 recipes requiring the minimum number of ingredients, and was rather amused that the first run included such classics as "boiled egg", "butter potato" and "toast".