From 81269e74eb1e9d60ca07235c5d69325808b20818 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sat, 21 Sep 2024 19:08:16 -0500 Subject: [PATCH] fix: Changed scrape_me to scrape_html It was needed to support the latest version of recipe_scrapers. --- recipe_box.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipe_box.py b/recipe_box.py index 9782fd2..ca40b51 100755 --- a/recipe_box.py +++ b/recipe_box.py @@ -14,7 +14,7 @@ except ImportError: import requests url_getter = requests -from recipe_scrapers import scrape_me, WebsiteNotImplementedError, SCRAPERS +from recipe_scrapers import scrape_html, WebsiteNotImplementedError, SCRAPERS ROOT = '~/.config/recipe_box/' @@ -163,7 +163,7 @@ def main(): for url in args.url: if url: try: - scraper = scrape_me(url, wild_mode=wild_mode) + scraper = scrape_html(html=None, org_url=url, wild_mode=wild_mode, online=True) except WebsiteNotImplementedError: print('No scraper defined for {url}'.format(url=url)) print('Try using the -w [wild-mode] option, your mileage may vary.')