added ability to create custom scrapers

This commit is contained in:
smilerz
2021-04-02 15:19:20 -05:00
parent e5984abd97
commit 342a261017
3 changed files with 15 additions and 46 deletions

View File

@@ -172,7 +172,8 @@ def get_from_scraper(scrape, space):
except AttributeError:
recipe_json['recipeInstructions'] = ""
recipe_json['recipeInstructions'] += "\n\nImported from " + scrape.url
if scrape.url:
recipe_json['recipeInstructions'] += "\n\nImported from " + scrape.url
return recipe_json