Skip to content

How to use the HTML text input recipe import? #5494

Answered by michael-genson
ornsio asked this question in Q&A
Discussion options

You must be logged in to vote

The HTML import option is identical to the regular scraper, except instead of fetching the HTML with a network request we already have it. If you don't have OpenAI integration enabled, then the HTML must have JSON-LD data in valid schema.org recipe format. If you're not copy-pasting existing HTML from a real website, you'll have an easier time just using the JSON import instead of the HTML import (which has the same restrictions, but you don't have to worry about fitting the JSON-LD into HTML).

Alternatively, if OpenAI is enabled, we first attempt to parse it normally (using the schema.org definition), then just throw the whole thing into an OpenAI request and ask it to format it into a p…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ornsio
Comment options

Answer selected by ornsio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants