News for hackers. Stuff that matters.
Re:Show HN: Recipe search engine, built in vanilla PHP by guhidalg on Friday May 06, 2022 @10:42AM (#31285709)
Nice work! I recently built a similar page, https://letscooktime.com , might be good to compare notes.

On integrating with recipe APIs, you can scrape recipe structured metadata. Most web sites use the google structured data, you can query for a script tag with type ld+json and find the structured data. See more information here: https://developers.google.com/search/docs/advanced/structure...

Re:Show HN: Recipe search engine, built in vanilla PHP by nsemikey on Friday May 06, 2022 @10:52AM (#31285856)
Thanks for the advice! Happy to share notes. I really like your site, has better features than mine (adjust Servings, Nutrition Facts by Ingredient). Question, do all the recipe APIs require showing the Source Link to give Credit? Just don't want to violate any terms.
Re:Show HN: Recipe search engine, built in vanilla PHP by guhidalg on Friday May 06, 2022 @12:23PM (#31286994)
No, you do not have to give attribution to a source if you simply copy the list of ingredients and steps. https://copyrightalliance.org/are-recipes-cookbooks-protecte....

However you should be careful not to copy the blog text or the _images_ from a recipe website, because those require you to get permission from the author for resharing.

Re:Show HN: Recipe search engine, built in vanilla PHP by nsemikey on Friday May 06, 2022 @12:30PM (#31287083)
Thanks, how were you able to get the images on your site? You got permission?
Re:Show HN: Recipe search engine, built in vanilla PHP by guhidalg on Friday May 06, 2022 @12:39PM (#31287181)
I plead the 5th.

We have it as a backlog item to take pictures of all the recipes as made in our kitchen, we just haven't gotten around to making a good lighting set up.

Re:Show HN: Recipe search engine, built in vanilla PHP by nsemikey on Friday May 06, 2022 @12:46PM (#31287268)
Gotcha! :)
Re:Show HN: Recipe search engine, built in vanilla PHP by chain-- on Friday May 06, 2022 @06:05PM (#31290043)
I also have something similar :)

Demo (client only): https://josh18.github.io/hitpoints/recipes Source: https://github.com/josh18/hitpoints

Goals are a little bit different though, designed to be a personal catalog.