Show HN: An API for scraping recipe web pages
choppingboard.recipes
Show HN: An API for scraping recipe web pages
1–10 of 113 posts
Re: Show HN: An API for scraping recipe web pages
#2 "prepTime": {
"text": "15 minutes",
"iso": "PT15M",
"minutes": 15
}
Why are you triplicating the time periods? I would limit that to just the ISO 8601 value (PT15M) and let the UI choose the proper rendering of the value.Re: Show HN: An API for scraping recipe web pages
#3Technically the project is interesting, but if you want to offer a commercial API you might run into copyright and fair use issues (as with any scraping tool). Not so much a problem for personal use, but expect angry letters from the major recipe websites for violating their terms of use (i.e., this is a threat to their business model).
1: Try this link: https://www.thespruce.com/peking-duck-recipe-694920 . You'll see a lot of garbage HTML and XML entities in the JSON that can be filtered and replaced fairly easily.
Re: Show HN: An API for scraping recipe web pages
#4 "ingredients": [
"600g pineapple, peeled, chopped"
]
This seems like a prime candidate for improvement; something like the following would seem to be more useful: "ingredients": [{
"ingredient": "pineapple",
"quantity": {
"value": 600
"unit": "g",
},
"preparation": [ "peeled", "chopped" ]
}]
Using this kind of data, I can imagine automated ordering, management of several planned recipes in conjunction, personalised timing estimations, etc. I think the whole field of cooking is ripe for some quality api-based disruption!Re: Show HN: An API for scraping recipe web pages
#5"prepTime": { "text": "15 minutes", "iso": "PT15M", "minutes": 15 } Why are you triplicating the time periods? I would limit that to just the ISO 8601 value (PT15M) and let the UI choose the proper rendering of the value.
Re: Show HN: An API for scraping recipe web pages
#6This really seems to be an exercise in 'structuring recipe data' rather than the ins-and-outs of scraping. Seems like a much-needed task; is there anything approaching a 'standard' for recipe data already? "ingredients": [ "600g pineapple, peeled, chopped" ] This seems like a prime candidate for improvement; something like the following would seem to be more useful: "ingredients": [{ "ingredient": "pineapple", "quant…
Re: Show HN: An API for scraping recipe web pages
#7This really seems to be an exercise in 'structuring recipe data' rather than the ins-and-outs of scraping. Seems like a much-needed task; is there anything approaching a 'standard' for recipe data already? "ingredients": [ "600g pineapple, peeled, chopped" ] This seems like a prime candidate for improvement; something like the following would seem to be more useful: "ingredients": [{ "ingredient": "pineapple", "quant…
I can see the same issue arising with this tool.
Re: Show HN: An API for scraping recipe web pages
#8This really seems to be an exercise in 'structuring recipe data' rather than the ins-and-outs of scraping. Seems like a much-needed task; is there anything approaching a 'standard' for recipe data already? "ingredients": [ "600g pineapple, peeled, chopped" ] This seems like a prime candidate for improvement; something like the following would seem to be more useful: "ingredients": [{ "ingredient": "pineapple", "quant…
Re: Show HN: An API for scraping recipe web pages
#9This really seems to be an exercise in 'structuring recipe data' rather than the ins-and-outs of scraping. Seems like a much-needed task; is there anything approaching a 'standard' for recipe data already? "ingredients": [ "600g pineapple, peeled, chopped" ] This seems like a prime candidate for improvement; something like the following would seem to be more useful: "ingredients": [{ "ingredient": "pineapple", "quant…
MyFitnessPal has the same issue where the quantity values mixed between different units, but also between volume(cup) vs weight(grams). So its a pain in the neck to know how heavy a cup of pasta is. I can see the same issue arising with this tool.
Re: Show HN: An API for scraping recipe web pages
#10Is there a behind-the-scenes somewhere? Is this regex magic alone?