Skip to content

Commit

Permalink
Reapply "Adds ingredient_group support to whatsgabycooking (#1210)"
Browse files Browse the repository at this point in the history
This reverts commit 722f58a.
  • Loading branch information
jayaddison committed Aug 26, 2024
1 parent 9069f9b commit 4e8511a
Show file tree
Hide file tree
Showing 7 changed files with 3,256 additions and 1,477 deletions.
9 changes: 9 additions & 0 deletions recipe_scrapers/whatsgabycooking.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
from ._abstract import AbstractScraper
from ._grouping_utils import group_ingredients


class WhatsGabyCooking(AbstractScraper):
@classmethod
def host(cls):
return "whatsgabycooking.com"

def ingredient_groups(self):
return group_ingredients(
self.ingredients(),
self.soup,
".wprm-recipe-ingredient-group h4",
".wprm-recipe-ingredient",
)
62 changes: 0 additions & 62 deletions tests/test_data/whatsgabycooking.com/whatsgabycooking.json

This file was deleted.

1,415 changes: 0 additions & 1,415 deletions tests/test_data/whatsgabycooking.com/whatsgabycooking.testhtml

This file was deleted.

52 changes: 52 additions & 0 deletions tests/test_data/whatsgabycooking.com/whatsgabycooking_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"author": "Gaby Dalkin",
"canonical_url": "https://whatsgabycooking.com/roasted-broccoli/",
"site_name": "What's Gaby Cooking",
"host": "whatsgabycooking.com",
"language": "en-US",
"title": "Caesar Parm Roasted Broccoli",
"ingredients": [
"3-4 heads broccoli (split into florets)",
"2 tablespoons olive oil",
"Kosher salt and freshly cracked black pepper (to taste)",
"1/2 teaspoon red pepper flakes",
"2/3 cup freshly grated Parmesan cheese",
"2/3 cup panko bread crumbs, sautéed in olive oil",
"1 lemon (juiced and zested)",
"1/2 cup Tahini Sauce, plus more as needed"
],
"instructions": "Preheat the oven to 450 degrees F. Line a baking sheet with parchment paper. Spread the broccoli evenly on the baking sheet and drizzle with 2 tablespoons of olive oil. Using tongs, gently toss the florets in the oil to combine and season with 4 tablespoons of the tahini sauce, salt and pepper and red pepper flakes. Toss to combine.\nTransfer the baking sheet into the oven and roast for 15-20 minutes until the broccoli is just golden and slightly crispy.\nRemove the baking sheet from the oven and drizzle more 2-3 tablespoons more of the tahini sauce on top. Toss with the toasted buttered breadcrumbs, tons of freshly grated parmesan cheese, lemon juice and zest and serve as needed.",
"instructions_list": [
"Preheat the oven to 450 degrees F. Line a baking sheet with parchment paper. Spread the broccoli evenly on the baking sheet and drizzle with 2 tablespoons of olive oil. Using tongs, gently toss the florets in the oil to combine and season with 4 tablespoons of the tahini sauce, salt and pepper and red pepper flakes. Toss to combine.",
"Transfer the baking sheet into the oven and roast for 15-20 minutes until the broccoli is just golden and slightly crispy.",
"Remove the baking sheet from the oven and drizzle more 2-3 tablespoons more of the tahini sauce on top. Toss with the toasted buttered breadcrumbs, tons of freshly grated parmesan cheese, lemon juice and zest and serve as needed."
],
"category": "Side Dish,Dinner",
"yields": "6 servings",
"description": "This Caesar Roasted Broccoli is perhaps the most perfect roasted broccoli recipe to ever grace the pages of What's Gaby Cooking! Adults and kids will both be obsessed",
"total_time": 30,
"cook_time": 20,
"prep_time": 10,
"cuisine": "American",
"ratings": 4.89,
"ratings_count": 18,
"nutrients": {
"calories": "342 kcal",
"carbohydrateContent": "32 g",
"proteinContent": "16 g",
"fatContent": "20 g",
"saturatedFatContent": "4 g",
"cholesterolContent": "10 mg",
"sodiumContent": "354 mg",
"fiberContent": "10 g",
"sugarContent": "6 g",
"unsaturatedFatContent": "14 g",
"servingSize": "1 serving"
},
"image": "https://whatsgabycooking.com/wp-content/uploads/2023/01/WGC-__-Caesar-Parm-Roasted-Broccoli-1-870x580-1.jpg",
"keywords": [
"roasted broccoli",
"caesar broccoli",
"how to roast broccoli"
]
}
Loading

0 comments on commit 4e8511a

Please sign in to comment.