From a60f15b0b77116e1349a6a06927da6cfbdd21378 Mon Sep 17 00:00:00 2001 From: FertyEtoYa <166287544+FertyEtoYa@users.noreply.github.com> Date: Wed, 10 Apr 2024 19:23:58 +0500 Subject: [PATCH] Update __init__.py fixed an error with the output of the 'name' parameter --- allrecipes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allrecipes/__init__.py b/allrecipes/__init__.py index f13edd7..20505aa 100644 --- a/allrecipes/__init__.py +++ b/allrecipes/__init__.py @@ -68,7 +68,7 @@ def search(search_string): @staticmethod def _get_name(soup): - return soup.find("h1", {"id": "article-heading_2-0"}).get_text().strip(' \t\n\r') + return soup.find("h1", {"class": "article-heading"}).get_text().strip(' \t\n\r') @staticmethod def _get_rating(soup):