quick hack to allow scraper to work correctly

This commit is contained in:
smilerz
2022-07-07 07:50:57 -05:00
parent 25a41bd293
commit b1c0334947
2 changed files with 7 additions and 2 deletions

View File

@@ -73,6 +73,7 @@ def get_recipe_from_source(text, url, request):
scrape = scrape_me(url_path=url, wild_mode=True)
except(NoSchemaFoundInWildMode):
pass
if not scrape:
try:
parse_list.append(remove_graph(json.loads(text)))
@@ -101,6 +102,7 @@ def get_recipe_from_source(text, url, request):
recipe_json = helper.get_from_scraper(scrape, request)
# TODO: DEPRECATE recipe_tree & html_data. first validate it isn't used anywhere
for el in parse_list:
temp_tree = []
if isinstance(el, Tag):