From d85b199e810e02e7b51fd970ba76c246764f868e Mon Sep 17 00:00:00 2001 From: Brendan Carpio <48795231+bfcarpio@users.noreply.github.com> Date: Tue, 28 Jul 2020 20:03:05 -0700 Subject: [PATCH] Revert "Add tasty.co parser" --- README.rst | 1 - recipe_scrapers/__init__.py | 2 -- recipe_scrapers/tasty.py | 28 ----------------- tests/test_data/tasty.testhtml | 55 -------------------------------- tests/test_tasty.py | 57 ---------------------------------- 5 files changed, 143 deletions(-) delete mode 100644 recipe_scrapers/tasty.py delete mode 100644 tests/test_data/tasty.testhtml delete mode 100644 tests/test_tasty.py diff --git a/README.rst b/README.rst index bd0579bd3..68dc49622 100644 --- a/README.rst +++ b/README.rst @@ -119,7 +119,6 @@ Scrapers available for: - `https://spendwithpennies.com/ `_ - `https://steamykitchen.com/ `_ - `https://tastesoflizzyt.com `_ -- `https://tasty.co `_ - `https://tasteofhome.com `_ - `https://tastykitchen.com/ `_ - `https://thehappyfoodie.co.uk/ `_ diff --git a/recipe_scrapers/__init__.py b/recipe_scrapers/__init__.py index ab18cd778..a8c476c44 100644 --- a/recipe_scrapers/__init__.py +++ b/recipe_scrapers/__init__.py @@ -71,7 +71,6 @@ from .steamykitchen import SteamyKitchen from .tastesoflizzyt import TastesOfLizzyT from .tasteofhome import TasteOfHome -from .tasty import Tasty from .tastykitchen import TastyKitchen from .thehappyfoodie import TheHappyFoodie from .thekitchn import TheKitchn @@ -161,7 +160,6 @@ SteamyKitchen.host(): SteamyKitchen, TastesOfLizzyT.host(): TastesOfLizzyT, TasteOfHome.host(): TasteOfHome, - Tasty.host(): Tasty, TastyKitchen.host(): TastyKitchen, TheHappyFoodie.host(): TheHappyFoodie, ThePioneerWoman.host(): ThePioneerWoman, diff --git a/recipe_scrapers/tasty.py b/recipe_scrapers/tasty.py deleted file mode 100644 index e948da19a..000000000 --- a/recipe_scrapers/tasty.py +++ /dev/null @@ -1,28 +0,0 @@ -from ._abstract import AbstractScraper - - -class Tasty(AbstractScraper): - @classmethod - def host(cls): - return "tasty.co" - - def title(self): - return self.schema.title().replace(" Recipe by tasty", "") - - def total_time(self): - return self.schema.total_time() - - def yields(self): - return self.schema.yields() - - def image(self): - return self.schema.image() - - def ingredients(self): - return self.schema.ingredients() - - def instructions(self): - return self.schema.instructions().replace("\n", "") - - def ratings(self): - return self.schema.ratings() diff --git a/tests/test_data/tasty.testhtml b/tests/test_data/tasty.testhtml deleted file mode 100644 index 10305b748..000000000 --- a/tests/test_data/tasty.testhtml +++ /dev/null @@ -1,55 +0,0 @@ -Red Wine-Braised Short Ribs With Cashew Cauliflower Mash Recipe by Tasty
PlayEmailLinkSMSXSearchClockRight ArrowCaret downCaret upCaret leftCaret rightPop OutThumbs upSpeechAudio onReplayPlusMinusShoppable Banner MobileShoppable Banner Desktop

93% would make again

Red Wine-Braised Short Ribs With Cashew Cauliflower Mash

Tasty Team

Ingredients

for 4 servings

  • 3 lb bone in beef short ribs (1.5 g), cut into 2-inch pieces
  • 1 tablespoon kosher salt
  • 2 teaspoons kosher salt
  • 1 ½ teaspoons freshly ground black pepper
  • 2 tablespoons avocado oil, divided
  • 1 large white onion, cut into 1 inch (2.5 cm) pieces
  • 4 celery stalks, cut into 1/2 inch (1 1/4 cm) diagonal pieces
  • 2 tablespoons tomato paste
  • 2 tablespoons all purpose flour
  • 2 cups dry red wine (480 mL), such as cabernet sauvignon
  • 1 head garlic, halved crosswise
  • 6 small rainbow carrots, peeled and ends trimmed
  • 10 sprigs fresh thyme
  • 2 cups low sodium beef broth (480 mL)
  • 2 lb cauliflower (910 g), cut into florets
  • 1 cup raw cashews (150 g)
  • 1 teaspoon garlic
  • ¼ cup fresh parsley (10 g), chopped, for garnish

Nutrition Info

Powered by
    Calories 1181
    Fat 56g
    Carbs 79g
    Fiber 10g
    Sugar 20g
    Protein 76g

Estimated values based on one serving size.

Preparation

  1. Liberally season the short ribs on all sides with 1 tablespoon of salt and the pepper.
  2. Heat 2 tablespoons of avocado oil in a 5-quart (5 liter) ceramic pot over medium-high heat until shimmering. Working in batches, add 6-7 pieces of short rib at a time to the pot and sear without disturbing for 2-3 minutes, until a golden brown crust forms. Turn the pieces and continue cooking until seared well on all sides. Remove the short ribs from the pan and set aside, adding another tablespoon of avocado oil to the pot if needed, and repeat with the remaining short ribs.
  3. Reduce the heat to medium and add the onion, celery, and the remaining ½ teaspoon of salt. Sauté for 3-4 minutes, until the vegetables begin to soften and release moisture.
  4. Add the tomato paste and stir to coat the vegetables, then cook for 2 minutes. Add the flour and stir to coat the vegetables, then cook for 2-3 minutes more, until deep red in color. Pour in the wine and stir to release any browned bits from the bottom of the pot.
  5. Nestle the short ribs on top of the vegetables in the pot. Bring to a boil, then reduce the heat to medium-low and simmer until the liquid is reduced by about half, 15-20 minutes.
  6. Preheat the oven to 350˚F (180°C).
  7. Nestle the garlic between the short ribs, then place the carrots and thyme sprigs on top. Pour in the beef stock.
  8. Cover the pot and transfer to the oven. Bake for 2½ hours, until the meat is falling off the bone and fork tender.
  9. While the short ribs are in the oven, make the cauliflower mash: Fill a medium pot with about an inch of water and set a steamer basket inside. Cover and bring the water to a simmer over medium-high heat. Add the cauliflower to the basket and steam for 12-15 minutes, until mashable with the back of a fork, but not overcooked.
  10. Working in batches, transfer the steamed cauliflower to a fine-mesh strainer set over a bowl. Using another bowl that is slightly smaller than the strainer, press the bowl into the cauliflower to press excess liquid from the cauliflower. Repeat with remaining cauliflower. Discard the liquid and set the cauliflower aside.
  11. Add the cashews to the bowl of a food processor. Blend on high speed for 2-3 minutes, until the cashews are completely broken down and can be mashed into a paste between your fingers, scraping down the sides of the bowl as necessary.
  12. Add the strained cauliflower, garlic powder, and salt. Blend until smooth and well combined with the cashew paste.
  13. Transfer to a serving bowl and serve warm.
  14. Serve the braised short ribs and carrots with the cauliflower mash and garnish with parsley.
  15. Enjoy!

Let’s quarantine cook!

We’ve curated a bunch of recipes & tips to make cooking easier for you during this time!

Let’s quarantine cook!

We’ve curated a bunch of recipes & tips to make cooking easier for you during this time!

Submit a recipe to Tasty

Have a recipe of your own to share?Submit your recipe here.

Submit your recipe
diff --git a/tests/test_tasty.py b/tests/test_tasty.py deleted file mode 100644 index 97a246020..000000000 --- a/tests/test_tasty.py +++ /dev/null @@ -1,57 +0,0 @@ -from tests import ScraperTest - -from recipe_scrapers.tasty import Tasty - - -class TestTastyScraper(ScraperTest): - - scraper_class = Tasty - - def test_host(self): - self.assertEqual("tasty.co", self.harvester_class.host()) - - def test_title(self): - self.assertEqual( - self.harvester_class.title(), - "Red Wine-Braised Short Ribs With Cashew Cauliflower Mash Recipe by Tasty", - ) - - def test_yields(self): - self.assertEqual("4 servings", self.harvester_class.yields()) - - def test_image(self): - self.assertEqual( - "https://img.buzzfeed.com/thumbnailer-prod-us-east-1/video-api/assets/236025.jpg", - self.harvester_class.image(), - ) - - def test_ingredients(self): - self.assertCountEqual( - [ - "3 lb bone in beef short ribs, cut into 2-inch pieces", - "1 tablespoon kosher salt", - "2 teaspoons kosher salt", - "1 Ç teaspoons freshly ground black pepper", - "2 tablespoons avocado oil, divided", - "1 large white onion, cut into 1 inch (2.5 cm) pieces", - "4 celery stalks, cut into 1/2 inch (1 1/4 cm) diagonal pieces", - "2 tablespoons tomato paste", - "2 tablespoons all purpose flour", - "2 cups dry red wine, such as cabernet sauvignon", - "1 head garlic, halved crosswise", - "6 small rainbow carrots, peeled and ends trimmed", - "10 sprigs fresh thyme", - "2 cups low sodium beef broth", - "2 lb cauliflower, cut into florets", - "1 cup raw cashews", - "1 teaspoon garlic", - "ÇÁ cup fresh parsley, chopped, for garnish", - ], - self.harvester_class.ingredients(), - ) - - def test_instructions(self): - return self.assertEqual( - "Liberally season the short ribs on all sides with 1 tablespoon of salt and the pepper.Heat 2 tablespoons of avocado oil in a 5-quart (5 liter) ceramic pot over medium-high heat until shimmering. Working in batches, add 6-7 pieces of short rib at a time to the pot and sear without disturbing for 2-3 minutes, until a golden brown crust forms. Turn the pieces and continue cooking until seared well on all sides. Remove the short ribs from the pan and set aside, adding another tablespoon of avocado oil to the pot if needed, and repeat with the remaining short ribs.Reduce the heat to medium and add the onion, celery, and the remaining Ç teaspoon of salt. SautÈ® for 3-4 minutes, until the vegetables begin to soften and release moisture.Add the tomato paste and stir to coat the vegetables, then cook for 2 minutes. Add the flour and stir to coat the vegetables, then cook for 2-3 minutes more, until deep red in color. Pour in the wine and stir to release any browned bits from the bottom of the pot.Nestle the short ribs on top of the vegetables in the pot. Bring to a boil, then reduce the heat to medium-low and simmer until the liquid is reduced by about half, 15-20 minutes.Preheat the oven to 350ПF (180ǵC).Nestle the garlic between the short ribs, then place the carrots and thyme sprigs on top. Pour in the beef stock.Cover the pot and transfer to the oven. Bake for 2Ç hours, until the meat is falling off the bone and fork tender.While the short ribs are in the oven, make the cauliflower mash: Fill a medium pot with about an inch of water and set a steamer basket inside. Cover and bring the water to a simmer over medium-high heat. Add the cauliflower to the basket and steam for 12-15 minutes, until mashable with the back of a fork, but not overcooked.Working in batches, transfer the steamed cauliflower to a fine-mesh strainer set over a bowl. Using another bowl that is slightly smaller than the strainer, press the bowl into the cauliflower to press excess liquid from the cauliflower. Repeat with remaining cauliflower. Discard the liquid and set the cauliflower aside.Add the cashews to the bowl of a food processor. Blend on high speed for 2-3 minutes, until the cashews are completely broken down and can be mashed into a paste between your fingers, scraping down the sides of the bowl as necessary.Add the strained cauliflower, garlic powder, and salt. Blend until smooth and well combined with the cashew paste.Transfer to a serving bowl and serve warm.Serve the braised short ribs and carrots with the cauliflower mash and garnish with parsley.Enjoy!", - self.harvester_class.instructions(), - )