TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A recipe parser to get rid of the cruft. I need you to break it

5 pointsby fideloperalmost 2 years ago
I made a recipe parser to get rid of all the cruft on recipes. Check it out: https:&#x2F;&#x2F;recipeplz.fly.dev&#x2F;<p>Has this been done? Yes. Does this project use AI? Also yes...but barely.<p>What it <i>does</i> do is grab various forms of metadata that recipe sites often provide for SEO reasons (as per schema.org Recipe spec). It&#x27;s commonly ld+json, but can be other formats as well.<p>The trick is this: What the numerous recipe sites output is not always the same - there are many variations of the schema.org specs used for Recipes, so this project attempts to correct for that. It&#x27;s just a bunch of conditionals.<p>If all else fails, it uses AI <i>as a fallback</i> to parse a recipe and return valid ld+json Recipe data based on Schema.org&#x27;s Recipe spec. I even say &quot;please&quot; to the AI overlords.<p>If a request for a recipe seems to take a long time, you&#x27;ll know it&#x27;s pinging OpenAI&#x27;s API (the Chat API via the 3.5-turbo model).<p>I&#x27;d love to see if you can find a recipe that breaks it!

4 comments

WebTDsalmost 2 years ago
Works pretty good. I&#x27;ve found non English websites braking it. eg.: <a href="https:&#x2F;&#x2F;www.mindmegette.hu&#x2F;sajtos-tejfolos-langos-iii.recept&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.mindmegette.hu&#x2F;sajtos-tejfolos-langos-iii.recept...</a> or: <a href="https:&#x2F;&#x2F;dobruchut.aktuality.sk&#x2F;recept&#x2F;28082&#x2F;fotorecept-bryndzove-halusky&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dobruchut.aktuality.sk&#x2F;recept&#x2F;28082&#x2F;fotorecept-brynd...</a>
explosion-salmost 2 years ago
This is super cool! One thing though, maybe add a print button and some styling to hide the inputs in print view: ```css @media print { .container:has(form){ display: none; } body { background: transparent !important; display: grid; place-items: center; } #the-recipe { padding: 40px !important; height: 100%; } } ```
methodicalmost 2 years ago
This broke it <a href="https:&#x2F;&#x2F;www.justonecookbook.com&#x2F;pressure-cooker-japanese-curry&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.justonecookbook.com&#x2F;pressure-cooker-japanese-cur...</a>
KomoDalmost 2 years ago
formatting becomes messed up with foreign languages &quot;KYCKLINGL&amp;ARING;R I UGN&quot; should be &quot;KYCKLINGLÅR I UGN&quot;