Skip to content

Recipe instructions in object-form should be importable #382

@callingshotgun

Description

@callingshotgun

Imported a recipe from this URL: https://justcook.butcherbox.com/cuts/pork/pork-loin-roast/ , which has the recipe in JSON-LD format embedded in the web page.

Image, name, ingredient list, and cooking time were imported just fine, but instructions are not imported, if one looks at the raw json generated, the "recipeInstructions" is an empty array.

Especially odd because if one looks at the JSON-LD that's in the web page in question, recipeInstructions is clearly a populated array. Problem is likely related to the fact this recipe divides its steps into sections.

For convenience, I used getld and jq to extract and inspect raw json from the original recipe URL in question, like so:

# get CLI tool for extracting JSON-LD from urls
go get github.com/daetal-us/getld

# json swiss army knife
sudo apt-get install jq

# get recipe, format it for human eyeball compatibility.
getld https://justcook.butcherbox.com/cuts/pork/pork-loin-roast/ | jq . > readable-recipe.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions