Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some outdated quirk/workaround handling code for schema.org data in mobkitchen scraper #689

Merged
merged 2 commits into from Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 0 additions & 6 deletions recipe_scrapers/mobkitchen.py
Expand Up @@ -18,12 +18,6 @@ def __init__(self, *args, **kwargs):
break

recipe_schema = json.loads(recipe_schema)

# MobKitchen don't follow the Recipe schema correctly, so this fixes
# the formatting so the Schema is parsed correctly.
for instruction in recipe_schema["recipeInstructions"]:
instruction["text"] = instruction["text"]["result"]

self.schema = SchemaOrg(recipe_schema, raw=True)

@classmethod
Expand Down