This case is a perfect 'recipe' for reinforcement learning. Let me know if you want help here.
Scraping Recipe Websites
161–170 of 204 posts
Re: Scraping Recipe Websites
#162Really nice! I often copy and paste recipes into text files I have locally so this is a great alternative. One feature request (if I may be so bold): it would be great to offer an imperial metric convertor. This is predominantly one of the reasons I keep copies of recipes I find and use.
It's really the conversion to weight (grams, from cups/tbsp/tsp/hogsheads) that would be valuable. It's just so much easier to clean to stick a scale under the mixing bowl.
Re: Scraping Recipe Websites
#163Re: Scraping Recipe Websites
#164Re: Scraping Recipe Websites
#165I've also made something almost identical - a Go library for recipes scrapers for ingredients [1] and instructions [2]. Instead of the LCA method here, in my version I try to find the longest sequence of highest scoring HTML tags and those are "ingredients" or "instructions". It works very well (although I think this one works better).
Like the article mentioned, I found that the heuristics for finding HTML elements with ingredients turn out to be surprisingly simple - they usually include just a number, a measurement, and a food! This simple heuristic worked better than other sophisticated things I tried.
Re: Scraping Recipe Websites
#166I highly useful tool in my household for dealing with the SEO/tracking scourge that recipe blogs have become is https://www.paprikaapp.com/ . Hoping someday to have some spare time to integrate this with https://grocy.info/ and have a pipeline for recipe -> preparation automation.
You can
- plan your meals for the week in seconds
- generate your shopping list
- exclude foods you don't like/want
- checkout online with amazon fresh/instacart and get your groceries delivered.
Happy to demo it for any HNers who want to give it a try.
Re: Scraping Recipe Websites
#167Earlier quoted context omitted.
I think it's also about different types of recipe collections. There are cookbooks that are all recipes. This seems to be what the HN crowd is looking for when they search the internet. There are cookbooks where each recipe is accompanied by a little story. These seem to sell well, judging by the number of them that appear on bookstore shelves. And then there are cookbooks where all of the anecdotes are in the front…
I wouldn't mind the "recipe at the end" format if that were the actual case. But it's not at the end. The actual structure of a modern recipe article is 1) Header 2) Blogpost 3) Click to read button 4) More blogpost, structured in a format that looks like an informal recipe - bulleted ingredients without quantities, discussion of steps. 5) Ad. 6) More blogpost 7) More ad that looks confusingly like a kind of recipe.…
Re: Scraping Recipe Websites
#168Earlier quoted context omitted.
A few comment above yours is this link talking about the healing power of cooking after 9/11: https://cooking.nytimes.com/recipes/1017089-maple-shortbread... Two days ago, I made this absolutely delicious "5 minute tiramisu": https://wishesndishes.com/5-minute-tiramasu-dip/ - That page doubles as a sponsored article, too (see disclaimer). But just to prove your point and make you happy, and also because I'm hungry, I…
Your first link is a recipe from 2001-09-19, which seems like strong evidence that it being written around 9/11 wasn't motivated by modern recipe SEO?
Re: Scraping Recipe Websites
#169I did ignore the photos though, since while recipes are not subject to copyright, photos are.
Re: Scraping Recipe Websites
#170Earlier quoted context omitted.
My favorite: talking about how this recipe helped you cope with the September 11 attacks (although this intro is shorter than a lot that I have seen). https://cooking.nytimes.com/recipes/1017089-maple-shortbread...
It ran in the paper 8 days after 9/11... seems pretty reasonable to me. In much the same vein as the rush by many to baking now.
It's not particularly gratuitous, especially given the date and location.