diff --git a/recipe_scrapers/usapears.py b/recipe_scrapers/usapears.py index c47a16cdb..20264fcf5 100644 --- a/recipe_scrapers/usapears.py +++ b/recipe_scrapers/usapears.py @@ -2,6 +2,7 @@ from ._abstract import AbstractScraper from ._exceptions import ElementNotFoundInHtml +from ._grouping_utils import group_ingredients from ._utils import get_minutes, normalize_string @@ -21,13 +22,23 @@ def total_time(self): return total_time def ingredients(self): - ingredient_elements = self.soup.find_all("li", {"itemprop": "ingredients"}) + ingredient_elements = self.soup.select( + 'li[itemprop="ingredients"]:not(:has(strong))' + ) return [ normalize_string(paragraph.get_text().strip()) for paragraph in ingredient_elements ] + def ingredient_groups(self): + return group_ingredients( + self.ingredients(), + self.soup, + 'li[itemprop="ingredients"] strong', + 'li[itemprop="ingredients"]:not(:has(strong))', + ) + def nutrients(self): container = self.soup.find("ul", {"itemprop": "nutrition"}) if not container: diff --git a/tests/test_data/usapears.org/usapears.json b/tests/test_data/usapears.org/usapears_1.json similarity index 100% rename from tests/test_data/usapears.org/usapears.json rename to tests/test_data/usapears.org/usapears_1.json diff --git a/tests/test_data/usapears.org/usapears.testhtml b/tests/test_data/usapears.org/usapears_1.testhtml similarity index 99% rename from tests/test_data/usapears.org/usapears.testhtml rename to tests/test_data/usapears.org/usapears_1.testhtml index 657b2abb8..8cd518d78 100644 --- a/tests/test_data/usapears.org/usapears.testhtml +++ b/tests/test_data/usapears.org/usapears_1.testhtml @@ -23,20 +23,20 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -968,33 +968,33 @@ height="0" width="0" style="display:none;visibility:hidden"> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ +
+ +
+ + +
+ + + + + + + + +
+ + +
+
+ +
+ + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ Recipe Image +
+
+ +
+ +
+ + + +
+
+ +
+

Pulled Pork and Pear Tacos with Pear Pico de Gallo

+
+
+ +
+
+
20
+
Prep Time
+
+ +
+
10hr
+
Cook Time
+
+ +
+
20
+
Servings
+
+
+ + + +
+
+
+
+ +
+ + + + +
+ +
+
+ +
+ Time for a taco party! In this festive recipe, pears appear in two ways: braised with pork shoulder to create depth and sweetness for a juicy, shredded taco filling, and also mixed into a zesty pear and jicama pico de gallo for topping. There will be plenty of the flavorful slow-cooked meat to feed a crowd, and any leftovers can be frozen for quick taco making for future weeknight dinners. Serve with margaritas and chips and salsa to round out the menu.
+ + + +
+ INGREDIENTS +
+ +
+ +
    +
  • Pulled Pork
  • +
  • 3 1/2 pounds pork shoulder (pork butt)
  • +
  • 1 tablespoon kosher salt
  • +
  • 1 tablespoon chile powder
  • +
  • 2 teaspoons ground cumin
  • +
  • 1/2 teaspoon freshly ground pepper
  • +
  • 1 tablespoon extra-virgin olive oil
  • +
  • 2 large ripe USA Pears, peeled and chopped
  • +
  • 1 small white onion, finely chopped
  • +
  • 1/4 cup chopped fresh cilantro leaves and stems
  • +
  • 4 canned chipotle chiles with a little extra sauce
  • +
  • 2 cloves garlic, minced
  • +
  • Juice of 1 lime
  • +
  • Pear Pico de Gallo
  • +
  • 1 1/2 cups finely diced USA Green Bartlett Pear
  • +
  • 1 cup finely diced jicama
  • +
  • 4 finely minced green onions
  • +
  • 1/4 cup minced cilantro
  • +
  • 2 minced jalapeños, or to taste
  • +
  • Juice of 1 lime
  • +
  • Kosher salt, to taste
  • +
  • Corn or flour tortillas, for serving
  • +
  • 1 avocado, sliced
  • +
  • Sour cream, for serving
  • +
+
+ + + +
+ DIRECTIONS +
+ +
+

To make the pulled pork: Cut the pork into 4 large chunks and season them with salt, chile powder, cumin, and pepper, coating all sides. Put the pork in a slow cooker and add the pears, onion, cilantro, chipotle chiles, and garlic, and squeeze the lime juice over everything. Cover and cook on until the meat easily shreds, 8 to 10 hours on low, or 4 to 6 hours on high. (This can also be cooked in an Instant Pot at high pressure for 75 minutes, following manufacturer’s instructions.) Shred the meat using two forks right in the slow cooker, discarding any fatty pieces. Keep warm.

+

To make the pico de gallo: Mix all ingredients in a small bowl up to 2 hours before serving.

+

Serve the pulled pork in warmed tortillas, topped with avocado, sour cream, and the pico de gallo, as desired.

+

(Leftover meat will keep in the refrigerator for up to 4 days, or can be frozen for up to 6 months.)

+

Photography: George Barberis (@georgebarberis)
+Recipe and Styling: Andrea Slonecker (@andreaslonecker)

+
+ + + + + +
NUTRITION
  • Serving Size: 1 Taco (178g)
  • Calories: 410
  • Carbohydrates: 27g
  • Protein: 23g
+ + + +
+ + +
+ + +
+

You May Also Like

+ +
+ + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + +
+ + + +
+ + + + + + +
+

Review This Recipe

Your email address will not be published. Required fields are marked *

*

*

+ +
+ + + + +

+ +

+ + + + + + +
+ + + + + +
+ + + + +
+
+ +
+ + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file