fix(deps): update dependency recipe-scrapers to v15 (#3955)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2024-07-30 17:48:47 +02:00 committed by GitHub
parent 23c2eab682
commit d7b7dd6c83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 7 deletions

View File

@ -201,7 +201,7 @@ class RecipeScraperPackage(ABCScraperStrategy):
recipe_html = await self.get_html(self.url)
try:
scraped_schema = scrape_html(recipe_html, org_url=self.url)
scraped_schema = scrape_html(recipe_html, org_url=self.url, supported_only=False)
except (NoSchemaFoundInWildMode, AttributeError):
self.logger.error(f"Recipe Scraper was unable to extract a recipe from {self.url}")
return None

12
poetry.lock generated
View File

@ -2608,20 +2608,22 @@ tests = ["html5lib", "pytest", "pytest-cov"]
[[package]]
name = "recipe-scrapers"
version = "14.58.0"
version = "15.0.0"
description = "Python package, scraping recipes from all over the internet"
optional = false
python-versions = ">=3.8"
files = [
{file = "recipe_scrapers-14.58.0-py3-none-any.whl", hash = "sha256:dfdd059bb8c6dece6ea3f5249326eeb6c92bae75398d67e4784cf1d6b4890af0"},
{file = "recipe_scrapers-14.58.0.tar.gz", hash = "sha256:c7df2c8d0764c6a62a76d897fb9b1533c3424f04cc33bff242bb21d3925d1441"},
{file = "recipe_scrapers-15.0.0-py3-none-any.whl", hash = "sha256:705d4e80bd0471f4fd73c584a551ca94f96521fdb1e766614aaebd32014d72c9"},
{file = "recipe_scrapers-15.0.0.tar.gz", hash = "sha256:d6fc8c5bacb67b571ac1cbaf4ab77e5f338112c107d40062e0a68403d16b8872"},
]
[package.dependencies]
beautifulsoup4 = ">=4.12.3"
extruct = ">=0.17.0"
isodate = ">=0.6.1"
requests = ">=2.31.0"
[package.extras]
online = ["requests (>=2.31.0)"]
[[package]]
name = "regex"
@ -3400,4 +3402,4 @@ pgsql = ["psycopg2-binary"]
[metadata]
lock-version = "2.0"
python-versions = "^3.10"
content-hash = "d2b389e15570fa45314e20d80bce9e47a52a087c17864fb079d90f2028f69efe"
content-hash = "5d39ab54b461c060397045a34475fa0ea7da39e8b8cd1e889aabffde63e8aad6"

View File

@ -33,7 +33,7 @@ python-dotenv = "^1.0.0"
python-ldap = "^3.3.1"
python-multipart = "^0.0.9"
python-slugify = "^8.0.0"
recipe-scrapers = "^14.55.0"
recipe-scrapers = "^15.0.0"
requests = "^2.31.0"
tzdata = "^2023.4"
uvicorn = { extras = ["standard"], version = "^0.30.0" }