diff --git a/recipe_scrapers/cookiesandcups.py b/recipe_scrapers/cookiesandcups.py index a26c7cb3e..374ef5bd3 100644 --- a/recipe_scrapers/cookiesandcups.py +++ b/recipe_scrapers/cookiesandcups.py @@ -8,6 +8,11 @@ class CookiesAndCups(AbstractScraper): def host(cls): return "cookiesandcups.com" + def author(self): + return self.soup.select_one( + ".post-author-detail.post-author-by .entry-author-name a" + ).get_text(strip=True) + def ingredient_groups(self): return group_ingredients( self.ingredients(), diff --git a/tests/test_data/cookiesandcups.com/cookiesandcups_1.json b/tests/test_data/cookiesandcups.com/cookiesandcups_1.json index ec4ca0d52..1b4599d42 100644 --- a/tests/test_data/cookiesandcups.com/cookiesandcups_1.json +++ b/tests/test_data/cookiesandcups.com/cookiesandcups_1.json @@ -1,5 +1,5 @@ { - "author": "Cookies & Cups", + "author": "Shelly", "canonical_url": "https://cookiesandcups.com/brown-sugar-pancakes/", "site_name": "Cookies and Cups", "host": "cookiesandcups.com",