added ability to create custom scrapers

This commit is contained in:
smilerz
2021-04-02 15:19:20 -05:00
parent 0a62225797
commit 3cf949bf8d
3 changed files with 49 additions and 37 deletions

View File

@ -174,7 +174,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