mirror of
https://github.com/SinTan1729/recipe-box-for-wikijs.git
synced 2024-12-24 17:38:37 -06:00
fix: Changed scrape_me to scrape_html
It was needed to support the latest version of recipe_scrapers.
This commit is contained in:
parent
f4f23cb527
commit
81269e74eb
1 changed files with 2 additions and 2 deletions
|
@ -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.')
|
||||
|
|
Loading…
Reference in a new issue