Skip to content

Commit

Permalink
Ingredient grouping support for thewoksoflife (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
jknndy authored Oct 22, 2024
1 parent 6bf8b92 commit 7a68cd7
Show file tree
Hide file tree
Showing 5 changed files with 1,380 additions and 0 deletions.
9 changes: 9 additions & 0 deletions recipe_scrapers/thewoksoflife.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 Thewoksoflife(AbstractScraper):
@classmethod
def host(cls):
return "thewoksoflife.com"

def ingredient_groups(self):
return group_ingredients(
self.ingredients(),
self.soup,
".wprm-recipe-ingredient-group h4",
".wprm-recipe-ingredient",
)
101 changes: 101 additions & 0 deletions tests/test_data/thewoksoflife.com/thewoksoflife_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"author": "Sarah",
"canonical_url": "https://thewoksoflife.com/chicken-mixed-vegetables/",
"site_name": "The Woks of Life",
"host": "thewoksoflife.com",
"language": "en-US",
"title": "Chicken with Mixed Vegetables",
"ingredients": [
"12 ounces boneless skinless chicken breast (or thighs)",
"2 tablespoons water",
"1 teaspoon cornstarch",
"1 teaspoon neutral oil ((such as vegetable, canola, or avocado oil))",
"2 teaspoons oyster sauce",
"2/3 cup low sodium chicken stock",
"1 1/2 teaspoons sugar ((or brown sugar))",
"1 tablespoon oyster sauce",
"1 1/2 tablespoons soy sauce",
"2 teaspoons dark soy sauce ((can sub regular soy sauce, but color won't be as dark))",
"1 teaspoon sesame oil",
"1/8 teaspoon white pepper",
"1 cup small broccoli florets",
"3/4 cup carrot ((thinly sliced on a diagonal))",
"3 tablespoons neutral oil ((such as vegetable, canola, or avocado oil; divided))",
"2 cloves garlic ((chopped))",
"1/2 cup large-diced onion",
"3/4 cup sliced mushrooms",
"1/2 cup red pepper",
"1 tablespoon Shaoxing wine",
"1½ tablespoons cornstarch ((mixed into a slurry with 2 tablespoons water))"
],
"ingredient_groups": [
{
"ingredients": [
"12 ounces boneless skinless chicken breast (or thighs)",
"2 tablespoons water",
"1 teaspoon cornstarch",
"1 teaspoon neutral oil ((such as vegetable, canola, or avocado oil))",
"2 teaspoons oyster sauce"
],
"purpose": "FOR THE CHICKEN:"
},
{
"ingredients": [
"2/3 cup low sodium chicken stock",
"1 1/2 teaspoons sugar ((or brown sugar))",
"1 tablespoon oyster sauce",
"1 1/2 tablespoons soy sauce",
"2 teaspoons dark soy sauce ((can sub regular soy sauce, but color won't be as dark))",
"1 teaspoon sesame oil",
"1/8 teaspoon white pepper",
"1 cup small broccoli florets",
"3/4 cup carrot ((thinly sliced on a diagonal))",
"3 tablespoons neutral oil ((such as vegetable, canola, or avocado oil; divided))",
"2 cloves garlic ((chopped))",
"1/2 cup large-diced onion",
"3/4 cup sliced mushrooms",
"1/2 cup red pepper",
"1 tablespoon Shaoxing wine",
"1½ tablespoons cornstarch ((mixed into a slurry with 2 tablespoons water))"
],
"purpose": "FOR THE REST OF THE DISH:"
}
],
"instructions_list": [
"In a medium bowl, add the sliced chicken, water, cornstarch, oil, and oyster sauce. Mix well until the chicken has absorbed all the liquid. Set aside while you prepare the other ingredients.",
"In another medium bowl or measuring cup, make the sauce mixture. Combine the chicken stock, sugar, oyster sauce, soy sauce, dark soy sauce, sesame oil, and white pepper.",
"Fill your wok halfway with water, and bring it to a boil. Add the broccoli and carrots. Blanch for 1 minute. Drain and set aside.",
"Heat your wok over high heat until it’s completely dry and starting to smoke. Add 2 tablespoons neutral oil, and sear the chicken until opaque on all sides. Turn off the heat, remove the chicken, and set aside. The chicken will be about 75-80% done, but will be cooked again at the end.",
"Without washing the wok, set the flame to medium heat. Add the remaining tablespoon of oil, along with the garlic, onion, mushrooms, and pepper. Cook for 30 seconds, then add the Shaoxing wine around the perimeter of the wok.",
"Then pour in the sauce mixture. Use your wok spatula to stir the sauce around the sides of the wok to deglaze, and let it come to a simmer. Simmer for 1 minute, until the vegetables are all crisp tender.",
"Stir up the cornstarch and water slurry and drizzle the mixture into sauce while stirring constantly. Allow the sauce to simmer until thick and gravy-like, about 30 seconds.",
"Toss in the chicken and its juices and the reserved broccoli and carrots. Stir-fry to coat the chicken in the sauce, cooking for another 30 seconds or so. Serve immediately with steamed rice."
],
"category": "Chicken",
"yields": "4 servings",
"description": "Make this real-deal Chinese takeout chicken with mixed vegetables recipe with any vegetables you have on hand for a healthy one-pan meal!",
"total_time": 45,
"cook_time": 15,
"prep_time": 30,
"cuisine": "American/Chinese",
"ratings": 4.88,
"ratings_count": 8,
"nutrients": {
"servingSize": "1 serving",
"calories": "283 kcal",
"fatContent": "15 g",
"saturatedFatContent": "2 g",
"unsaturatedFatContent": "12 g",
"transFatContent": "0.1 g",
"carbohydrateContent": "15 g",
"sugarContent": "5 g",
"proteinContent": "22 g",
"sodiumContent": "726 mg",
"fiberContent": "2 g",
"cholesterolContent": "54 mg"
},
"image": "https://thewoksoflife.com/wp-content/uploads/2024/09/chicken-mixed-vegetables-15.jpg",
"keywords": [
"chicken with mixed vegetables"
]
}
Loading

0 comments on commit 7a68cd7

Please sign in to comment.