From 25a41bd293873febcb57febdd0fb378852cc7086 Mon Sep 17 00:00:00 2001 From: smilerz Date: Thu, 7 Jul 2022 06:43:07 -0500 Subject: [PATCH] reverting scraper to just using wildmode --- cookbook/helper/recipe_html_import.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cookbook/helper/recipe_html_import.py b/cookbook/helper/recipe_html_import.py index 48dc4c119..c97629ef9 100644 --- a/cookbook/helper/recipe_html_import.py +++ b/cookbook/helper/recipe_html_import.py @@ -6,7 +6,7 @@ from urllib.parse import unquote from bs4 import BeautifulSoup from bs4.element import Tag from recipe_scrapers import scrape_html, scrape_me -from recipe_scrapers._exceptions import NoSchemaFoundInWildMode, WebsiteNotImplementedError +from recipe_scrapers._exceptions import NoSchemaFoundInWildMode from recipe_scrapers._utils import get_host_name, normalize_string from cookbook.helper import recipe_url_import as helper @@ -70,12 +70,9 @@ def get_recipe_from_source(text, url, request): if url and not text: try: - scrape = scrape_me(url_path=url) - except WebsiteNotImplementedError: - try: - scrape = scrape_me(url_path=url, wild_mode=True) - except(NoSchemaFoundInWildMode): - pass + scrape = scrape_me(url_path=url, wild_mode=True) + except(NoSchemaFoundInWildMode): + pass if not scrape: try: parse_list.append(remove_graph(json.loads(text)))