You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/app/mealie/test.py", line 7, in
scraper = scrape_html(html, org_url=url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/recipe_scrapers/init.py", line 967, in scrape_html
return SCRAPERS[host_name](html=html, url=org_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/recipe_scrapers/_abstract.py", line 36, in init
for name, _ in inspect.getmembers(self, inspect.ismethod):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/inspect.py", line 614, in getmembers
return _getmembers(object, predicate, getattr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/inspect.py", line 592, in _getmembers
value = getter(object, key)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/functools.py", line 995, in get
val = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/recipe_scrapers/americastestkitchen.py", line 74, in _get_additional_details
name = list(j["props"]["initialState"]["content"]["documents"])[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
Optional information that helps us understand our users better:
Which version of recipe-scrapers 15.3.3
What's your use case for recipe-scrapers Mealie
The text was updated successfully, but these errors were encountered:
This might need to be confirmed but it looks like this is fixed on the main branch? I installed the main git branch with the following command.
pip install git+https://github.com/hhursev/recipe-scrapers.git
Recipe URL with the issue:
Which data is not being scraped correctly?
Ingredients, Instructions.
Test Script
from urllib.request import urlopen
from recipe_scrapers import scrape_html
url = "https://www.americastestkitchen.com/recipes/14702-cherry-hand-pies"
html = urlopen(url).read().decode("utf-8") # retrieves the recipe webpage HTML
scraper = scrape_html(html, org_url=url)
Results
Traceback (most recent call last):
File "/app/mealie/test.py", line 7, in
scraper = scrape_html(html, org_url=url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/recipe_scrapers/init.py", line 967, in scrape_html
return SCRAPERS[host_name](html=html, url=org_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/recipe_scrapers/_abstract.py", line 36, in init
for name, _ in inspect.getmembers(self, inspect.ismethod):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/inspect.py", line 614, in getmembers
return _getmembers(object, predicate, getattr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/inspect.py", line 592, in _getmembers
value = getter(object, key)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/functools.py", line 995, in get
val = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/opt/pysetup/.venv/lib/python3.12/site-packages/recipe_scrapers/americastestkitchen.py", line 74, in _get_additional_details
name = list(j["props"]["initialState"]["content"]["documents"])[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
Optional information that helps us understand our users better:
The text was updated successfully, but these errors were encountered: