Skip to content

Commit

Permalink
cookiesandcups author
Browse files Browse the repository at this point in the history
  • Loading branch information
jknndy committed Oct 2, 2024
1 parent 0416afe commit 71a5c3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions recipe_scrapers/cookiesandcups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/cookiesandcups.com/cookiesandcups_1.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 71a5c3c

Please sign in to comment.