Skip to content

Commit

Permalink
Adds support for cookwell (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
jknndy authored Oct 15, 2024
1 parent 6bdc1e5 commit 4f3f371
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ Scrapers available for:
- `https://cookpad.com/ <https://cookpad.com/>`_
- `https://cookscountry.com/ <https://www.cookscountry.com>`_ (*)
- `https://cooksillustrated.com/ <https://www.cooksillustrated.com>`_ (*)
- `https://cookwell.com/ <https://cookwell.com/>`_
- `https://copykat.com/ <https://copykat.com>`_
- `https://www.costco.com/ <https://www.costco.com>`_
- `https://countryliving.com/ <https://countryliving.com>`_
Expand Down
2 changes: 2 additions & 0 deletions recipe_scrapers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
from .cookscountry import CooksCountry
from .cooksillustrated import CooksIllustrated
from .cooktalk import CookTalk
from .cookwell import CookWell
from .copykat import CopyKat
from .costco import Costco
from .countryliving import CountryLiving
Expand Down Expand Up @@ -477,6 +478,7 @@
CookEatShare.host(): CookEatShare,
CookPad.host(): CookPad,
CookTalk.host(): CookTalk,
CookWell.host(): CookWell,
CookieAndKate.host(): CookieAndKate,
CookiesAndCups.host(): CookiesAndCups,
CookingCircle.host(): CookingCircle,
Expand Down
7 changes: 7 additions & 0 deletions recipe_scrapers/cookwell.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from ._abstract import AbstractScraper


class CookWell(AbstractScraper):
@classmethod
def host(cls):
return "cookwell.com"
40 changes: 40 additions & 0 deletions tests/test_data/cookwell.com/cookwell_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"author": "Ethan Chlebowski",
"canonical_url": "https://cookwell.com/recipe/crispy-oven-fries",
"host": "cookwell.com",
"language": "en",
"title": "Crispy oven fries",
"ingredients": [
"Russet potatoes, 3-5",
"Salt, to taste",
"Vinegar, ~15 g",
"Peanut Oil, ~60 g"
],
"instructions_list": [
"Prep",
"Set a pot of water on high heat to boil. Preheat the oven to 450°F/232°C (use the convection setting if you have it). Meanwhile, peel the potatoes, slice them into roughly 1/2 inch sheets, then into roughly 1/2 inch thick fries (or to your desired fry size).",
"Parboil the fries",
"Once the water has boiled, add the vinegar and a large pinch of salt, stirring to dissolve the salt. Add the potatoes to the water and boil for 8 minutes. Note: The vinegar will slow down the breakdown of the potato pectin starch so the fries do not fall apart as easily. Boiling the fries will gelate their exterior, which will give you much crispier results in the next steps. When the time is up, pour the fries into a colander and let the excess steam evaporate for a couple of minutes.",
"Coat the fries with oil",
"Add the fries to a large baking sheet and pour over the peanut oil. Gently mix the fries around so the oil completely coats the outside of each fry. There should be a thin layer of excess oil on the pan. Make sure the fries aren't overly crowded. They need space to properly dehydrate in the oven. Use 2 baking sheets if needed.",
"Roast",
"Add the pan to the preheated oven and roast for 15 minutes. Pull the baking sheet out and flip each fry over with a spatula. At this point, you should be able to see some blistering on the outside but the fries won't be overly crisp. If they look a little dry, drizzle over more peanut oil. Add them back to the oven and roast for another 15-20 minutes. At this point, they should be browned and crispy, though it could take longer depending on the size of the fry, how crowded the pan is, or the amount of oil used. If they aren't crispy, let them go longer!",
"Finish & serve",
"Set a paper towel in a bowl. Add the fries and immediately season with salt while they are warm with oil on their surface. Toss the fries with the paper towel so it absorbs the excess oil. Taste and adjust with more salt, if needed. Feel free to add spices, fresh herbs, cheeses, or any flavorings of your choice during this stage. Serve and enjoy."
],
"category": "Side",
"yields": "4 servings",
"description": "Better & easier than deep fried.",
"total_time": 75,
"cuisine": "American",
"nutrients": {
"calories": "970 calories"
},
"image": "https://cdn.sanity.io/images/g1s4qnmz/production/ba9d3d0d5ff9a0f9f17f8e11df7e93b7f3806a48-1000x1000.jpg",
"keywords": [
"Best oven method for fries",
"best alternative to deep frying",
"how to make crispy fries at home",
"the science of good french fries"
]
}
1 change: 1 addition & 0 deletions tests/test_data/cookwell.com/cookwell_1.testhtml

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions tests/test_data/cookwell.com/cookwell_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"author": "Keith McBrayer",
"canonical_url": "https://cookwell.com/recipe/lahmacun",
"host": "cookwell.com",
"language": "en",
"title": "Lahmacun",
"ingredients": [
"Ground beef, 300 g",
"Flatbreads, ~6",
"Sour Cream, 2 spoonfuls",
"Onions, 1",
"Parsley, 1 bunch",
"Salt, to taste",
"Black Pepper, to taste",
"Paprika, a sprinkle",
"Cumin, a sprinkle",
"Parsley,",
"Onions,",
"Tomatoes,",
"Lemons,"
],
"instructions_list": [
"Preheat the oven",
"If using freshly made dough, preheat an oven with a pizza steel/stone in the top rack. Switch the oven to the broiler function on high.",
"Mix & spread the meat onto the flabreads.",
"Meanwhile, mix all meat spread components until the meat is tacky. Cook a tiny spoonful of it in the microwave to check seasoning, and add ingredients if needed. Spread a very thin layer of the meat mixture onto a flatbread. Repeat with remaining flatbreads until you’ve run out of meat.",
"Bake the lahmacun",
"Slide a prepped flatbread onto the stone and broil from above until the meat mixture is browned and fully cooked. Repeat with remaining portions. Serve warm with garnishes on the side. To eat: roll up an individual lahmacun with toppings of choice. Enjoy."
],
"category": "Main Course",
"yields": "6 servings",
"description": "Middle-Eastern flatbread pizza.",
"total_time": 30,
"cuisine": "Middle Eastern",
"nutrients": {
"calories": "2558 calories"
},
"image": "https://cdn.sanity.io/images/g1s4qnmz/production/3b2a77f0f746cf90c4f7f49a92b39885ada6e9de-3543x3543.jpg",
"keywords": [
"Lahmacun",
"Middle Eastern",
"flatbread",
"pizza",
"meat"
]
}
1 change: 1 addition & 0 deletions tests/test_data/cookwell.com/cookwell_2.testhtml

Large diffs are not rendered by default.

0 comments on commit 4f3f371

Please sign in to comment.