Open sudobash1 opened 3 days ago
I am using this patch in my docker container, and it seems to work like it did before.
diff --git a/recipe_scrapers/americastestkitchen.py b/recipe_scrapers/americastestkitchen.py
index 589b9c95..08fdc68f 100644
--- a/recipe_scrapers/americastestkitchen.py
+++ b/recipe_scrapers/americastestkitchen.py
@@ -71,5 +71,4 @@ class AmericasTestKitchen(AbstractScraper):
@functools.cached_property
def _get_additional_details(self):
j = json.loads(self.soup.find(type="application/json").string)
- name = list(j["props"]["initialState"]["content"]["documents"])[0]
- return j["props"]["initialState"]["content"]["documents"][name]
+ return j["props"]["pageProps"]["data"]
Pre-filing checks
The URL of the recipe(s) that are not being scraped correctly
Seems like all recipes broken. Here are some examples:
The results you expect to see
It used to work (72 hours ago). Now it doesn't find any recipe.
The results (including any Python error messages) that you are seeing
Python error:
It looks like America's Test Kitchen changed the json on the page.