Skip to content

Commit

Permalink
5 site additions (#1133)
Browse files Browse the repository at this point in the history
* dinneratthezoo

* evolvingtable

* onesweetappetite

* kristineskitchenblog

* allthehealthythings
  • Loading branch information
jknndy committed May 11, 2024
1 parent a7198df commit 371a49e
Show file tree
Hide file tree
Showing 23 changed files with 17,276 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Scrapers available for:
- `https://ah.nl/ <https://ah.nl/>`_
- `https://alittlebityummy.com/ <https://alittlebityummy.com/>`_
- `https://allrecipes.com/ <https://allrecipes.com/>`_
- `https://allthehealthythings.com/ <https://allthehealthythings.com/>`_
- `https://alltommat.se/ <https://alltommat.se/>`_
- `https://altonbrown.com/ <https://altonbrown.com/>`_
- `https://amazingribs.com/ <https://amazingribs.com/>`_
Expand Down Expand Up @@ -154,6 +155,7 @@ Scrapers available for:
- `https://cybercook.com.br/ <https://cybercook.com.br/>`_
- `https://www.davidlebovitz.com/ <https://www.davidlebovitz.com/>`_
- `https://delish.com/ <https://delish.com>`_
- `https://dinneratthezoo.com/ <https://dinneratthezoo.com>`_
- `https://dish.co.nz/ <https://dish.co.nz>`_
- `https://domesticate-me.com/ <https://domesticate-me.com/>`_
- `https://downshiftology.com/ <https://downshiftology.com/>`_
Expand All @@ -169,6 +171,7 @@ Scrapers available for:
- `https://emmikochteinfach.de/ <https://emmikochteinfach.de/>`_
- `https://ethanchlebowski.com/ <https://ethanchlebowski.com>`_
- `https://epicurious.com/ <https://epicurious.com>`_
- `https://www.evolvingtable.com/ <https://www.evolvingtable.com/>`_
- `https://www.errenskitchen.com/ <https://www.errenskitchen.com/>`_
- `https://recipes.farmhousedelivery.com/ <https://recipes.farmhousedelivery.com/>`_
- `https://www.farmhouseonboone.com/ <https://www.farmhouseonboone.com/>`_
Expand Down Expand Up @@ -243,6 +246,7 @@ Scrapers available for:
- `https://kochbucher.com/ <https://kochbucher.com/>`_
- `http://koket.se/ <http://koket.se>`_
- `https://www.kptncook.com/ <https://www.kptncook.com>`_
- `https://kristineskitchenblog.com/ <https://kristineskitchenblog.com>`_
- `https://kuchnia-domowa.pl/ <https://www.kuchnia-domowa.pl/>`_
- `https://kuchynalidla.sk/ <https://www.kuchynalidla.sk/>`_
- `https://www.kwestiasmaku.com/ <https://www.kwestiasmaku.com/>`_
Expand Down Expand Up @@ -303,6 +307,7 @@ Scrapers available for:
- `https://ohsheglows.com/ <https://ohsheglows.com>`_
- `https://omnivorescookbook.com <https://omnivorescookbook.com>`_
- `https://www.onceuponachef.com <https://www.onceuponachef.com>`_
- `https://onesweetappetite.com/ <https://onesweetappetite.com>`_
- `https://owen-han.com/ <https://owen-han.com>`_
- `https://101cookbooks.com/ <https://101cookbooks.com/>`_
- `https://www.paleorunningmomma.com/ <https://www.paleorunningmomma.com>`_
Expand Down
10 changes: 10 additions & 0 deletions recipe_scrapers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from .albertheijn import AlbertHeijn
from .alittlebityummy import ALittleBitYummy
from .allrecipes import AllRecipes
from .allthehealthythings import AllTheHealthyThings
from .alltomat import AllTomat
from .altonbrown import AltonBrown
from .amazingribs import AmazingRibs
Expand Down Expand Up @@ -71,6 +72,7 @@
from .cybercook import Cybercook
from .davidlebovitz import DavidLebovitz
from .delish import Delish
from .dinneratthezoo import DinnerAtTheZoo
from .dishnz import Dishnz
from .domesticateme import DomesticateMe
from .downshiftology import Downshiftology
Expand All @@ -87,6 +89,7 @@
from .epicurious import Epicurious
from .errenskitchen import ErrensKitchen
from .ethanchlebowski import EthanChlebowski
from .evolvingtable import EvolvingTable
from .farmhousedelivery import FarmhouseDelivery
from .farmhouseonboone import FarmhouseOnBoone
from .fattoincasadabenedetta import FattoInCasaDaBenedetta
Expand Down Expand Up @@ -157,6 +160,7 @@
from .kochbucher import Kochbucher
from .koket import Koket
from .kptncook import KptnCook
from .kristineskitchenblog import KristinesKitchenBlog
from .kuchniadomowa import KuchniaDomowa
from .kuchynalidla import KuchynaLidla
from .kwestiasmaku import KwestiaSmaku
Expand Down Expand Up @@ -211,6 +215,7 @@
from .omnivorescookbook import OmnivoresCookbook
from .onceuponachef import OnceUponAChef
from .onehundredonecookbooks import OneHundredOneCookBooks
from .onesweetappetite import OneSweetAppetite
from .owenhan import OwenHan
from .paleorunningmomma import PaleoRunningMomma
from .panelinha import Panelinha
Expand Down Expand Up @@ -341,6 +346,7 @@
AkisPetretzikis.host(): AkisPetretzikis,
AlbertHeijn.host(): AlbertHeijn,
AllRecipes.host(): AllRecipes,
AllTheHealthyThings.host(): AllTheHealthyThings,
AllTomat.host(): AllTomat,
AltonBrown.host(): AltonBrown,
AmazingRibs.host(): AmazingRibs,
Expand Down Expand Up @@ -395,9 +401,11 @@
Cybercook.host(): Cybercook,
DavidLebovitz.host(): DavidLebovitz,
Delish.host(): Delish,
DinnerAtTheZoo.host(): DinnerAtTheZoo,
Dishnz.host(): Dishnz,
EatLiveRun.host(): EatLiveRun,
ElaVegan.host(): ElaVegan,
EvolvingTable.host(): EvolvingTable,
FitSlowCookerQueen.host(): FitSlowCookerQueen,
GourmetTraveller.host(): GourmetTraveller,
GrandFrais.host(): GrandFrais,
Expand All @@ -406,13 +414,15 @@
JoshuaWeissman.host(): JoshuaWeissman,
JoyTheBaker.host(): JoyTheBaker,
KitchenAidAustralia.host(): KitchenAidAustralia,
KristinesKitchenBlog.host(): KristinesKitchenBlog,
KuchynaLidla.host(): KuchynaLidla,
McCormick.host(): McCormick,
Moulinex.host(): Moulinex,
MundoDeReceitasBimby.host(): MundoDeReceitasBimby,
MyJewishLearning.host(): MyJewishLearning,
MyKoreanKitchen.host(): MyKoreanKitchen,
NutritionFacts.host(): NutritionFacts,
OneSweetAppetite.host(): OneSweetAppetite,
PinchOfYum.host(): PinchOfYum,
PotatoRolls.host(): PotatoRolls,
Recept.host(): Recept,
Expand Down
18 changes: 18 additions & 0 deletions recipe_scrapers/allthehealthythings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# mypy: allow-untyped-defs

from ._abstract import AbstractScraper
from ._grouping_utils import group_ingredients


class AllTheHealthyThings(AbstractScraper):
@classmethod
def host(cls):
return "allthehealthythings.com"

def ingredient_groups(self):
return group_ingredients(
self.ingredients(),
self.soup,
".tasty-recipes-ingredients-body strong",
".tasty-recipes-ingredients-body li",
)
9 changes: 9 additions & 0 deletions recipe_scrapers/dinneratthezoo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# mypy: allow-untyped-defs

from ._abstract import AbstractScraper


class DinnerAtTheZoo(AbstractScraper):
@classmethod
def host(cls):
return "dinneratthezoo.com"
18 changes: 18 additions & 0 deletions recipe_scrapers/evolvingtable.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# mypy: allow-untyped-defs

from ._abstract import AbstractScraper
from ._grouping_utils import group_ingredients


class EvolvingTable(AbstractScraper):
@classmethod
def host(cls):
return "evolvingtable.com"

def ingredient_groups(self):
return group_ingredients(
self.ingredients(),
self.soup,
".wprm-recipe-ingredient-group h4",
".wprm-recipe-ingredient",
)
18 changes: 18 additions & 0 deletions recipe_scrapers/kristineskitchenblog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# mypy: allow-untyped-defs

from ._abstract import AbstractScraper
from ._grouping_utils import group_ingredients


class KristinesKitchenBlog(AbstractScraper):
@classmethod
def host(cls):
return "kristineskitchenblog.com"

def ingredient_groups(self):
return group_ingredients(
self.ingredients(),
self.soup,
".wprm-recipe-ingredient-group h4",
".wprm-recipe-ingredient",
)
17 changes: 17 additions & 0 deletions recipe_scrapers/onesweetappetite.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# mypy: allow-untyped-defs

from ._abstract import AbstractScraper
from ._utils import get_equipment, normalize_string


class OneSweetAppetite(AbstractScraper):
@classmethod
def host(cls):
return "onesweetappetite.com"

def equipment(self):
equipment_items = [
normalize_string(e.get_text())
for e in self.soup.find_all("div", class_="wprm-recipe-equipment-name")
]
return get_equipment(equipment_items)
81 changes: 81 additions & 0 deletions tests/test_data/allthehealthythings.com/allthehealthythings_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"author": "Ashlea Carver",
"canonical_url": "https://allthehealthythings.com/cheddar-jalapeno-cornbread/",
"site_name": "All the Healthy Things",
"host": "allthehealthythings.com",
"language": "en-US",
"title": "Cheddar Jalapeño Cornbread with Whipped Hot Honey Butter",
"ingredient_groups": [
{
"ingredients": [
"1 cup all purpose flour",
"1 cup yellow cornmeal",
"1 tablespoon baking powder",
"1 teaspoon salt",
"4 oz sharp yellow cheddar, shredded",
"1 jalapeño pepper, seeds removed and finely diced",
"1 1/2 cups buttermilk",
"2 eggs",
"1/4 cup unsalted butter, melted + 2 tablespoons unsalted butter",
"flakey sea salt, for garnish"
],
"purpose": null
},
{
"ingredients": [
"1/2 cup (1 stick) unsalted butter, softened",
"1/4 cup hot honey, plus more for serving",
"pinch of salt"
],
"purpose": "Whipped Hot Honey Butter"
}
],
"ingredients": [
"1 cup all purpose flour",
"1 cup yellow cornmeal",
"1 tablespoon baking powder",
"1 teaspoon salt",
"4 oz sharp yellow cheddar, shredded",
"1 jalapeño pepper, seeds removed and finely diced",
"1 1/2 cups buttermilk",
"2 eggs",
"1/4 cup unsalted butter, melted + 2 tablespoons unsalted butter",
"flakey sea salt, for garnish",
"1/2 cup (1 stick) unsalted butter, softened",
"1/4 cup hot honey, plus more for serving",
"pinch of salt"
],
"instructions": "Place a 8 or 9 inch skillet in the oven and then set to preheat at 400 degrees.\nTo a large mixing bowl add the corn meal, flour, baking powder, and salt. Then, add the shredded cheese and jalapeño and stir until well combined.\nIn another bowl, whisk together the eggs, buttermilk, and 1/4 cup melted butter.\nPour the wet ingredients into the dry and gently fold until everything is well combined.\nRemove the hot skillet from the oven and add 2 tablespoons of butter. Add the skillet back to the oven and let melt completely. Once the butter has melted, remove the skillet from the oven and swirl the butter around until the skillet is fully coated. Pour the batter into the hot skillet.\nBake the cornbread for around 25-30 minutes at 400 degrees or until a toothpick comes out clean. The center of the cornbread should be puffed and the edges golden brown.\nMake the Whipped Hot Honey Butter\nWhile the cornbread is baking make the whipped honey butter. Add the softened butter and honey to a mixing bowl. Use a hand mixer to beat at high speed for 1 minute until fluffy.\nWhile the cornbread is still hot, brush some of the honey butter overtop of the cornbread. Let cool for a few minutes and then slice the cornbread into 8 slices and serve warm with an extra dollop of honey butter, a drizzle of hot honey, and flaky sea salt.",
"instructions_list": [
"Place a 8 or 9 inch skillet in the oven and then set to preheat at 400 degrees.",
"To a large mixing bowl add the corn meal, flour, baking powder, and salt. Then, add the shredded cheese and jalapeño and stir until well combined.",
"In another bowl, whisk together the eggs, buttermilk, and 1/4 cup melted butter.",
"Pour the wet ingredients into the dry and gently fold until everything is well combined.",
"Remove the hot skillet from the oven and add 2 tablespoons of butter. Add the skillet back to the oven and let melt completely. Once the butter has melted, remove the skillet from the oven and swirl the butter around until the skillet is fully coated. Pour the batter into the hot skillet.",
"Bake the cornbread for around 25-30 minutes at 400 degrees or until a toothpick comes out clean. The center of the cornbread should be puffed and the edges golden brown.",
"Make the Whipped Hot Honey Butter",
"While the cornbread is baking make the whipped honey butter. Add the softened butter and honey to a mixing bowl. Use a hand mixer to beat at high speed for 1 minute until fluffy.",
"While the cornbread is still hot, brush some of the honey butter overtop of the cornbread. Let cool for a few minutes and then slice the cornbread into 8 slices and serve warm with an extra dollop of honey butter, a drizzle of hot honey, and flaky sea salt."
],
"category": "Sides",
"yields": "8 servings",
"description": "This Cheddar Jalapeño Cornbread with Whipped Hot Honey Butter is absolutely delicious! The classic cheddar jalapeño skillet cornbread is taken to the next level with the perfect whipped hot honey butter to spread on top. Everyone will love it!",
"total_time": 45,
"prep_time": 20,
"cuisine": "American",
"ratings": 5.0,
"ratings_count": 0,
"nutrients": {
"calories": "412 calories",
"sugarContent": "11.6 g",
"sodiumContent": "1172.4 mg",
"fatContent": "25.2 g",
"saturatedFatContent": "14.8 g",
"transFatContent": "0.1 g",
"carbohydrateContent": "37.9 g",
"fiberContent": "2 g",
"proteinContent": "9.7 g",
"cholesterolContent": "111.3 mg"
},
"image": "https://allthehealthythings.com/wp-content/uploads/2023/08/Jalapeno-Cheddar-Skillet-Cornbread-with-Whipped-Hot-Honey-Butter-6-scaled-225x225.jpg"
}
4,986 changes: 4,986 additions & 0 deletions tests/test_data/allthehealthythings.com/allthehealthythings_1.testhtml

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions tests/test_data/allthehealthythings.com/allthehealthythings_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"author": "Ashlea Carver",
"canonical_url": "https://allthehealthythings.com/mixed-berry-smoothie/",
"site_name": "All the Healthy Things",
"host": "allthehealthythings.com",
"language": "en-US",
"title": "Mixed Berry Smoothie",
"ingredient_groups": [
{
"ingredients": [
"2 cups frozen mixed berries (raspberries, blueberries, blackberries)",
"1 cup plain Greek yogurt",
"1/2 orange juice",
"1/4 cup pineapple juice"
],
"purpose": null
}
],
"ingredients": [
"2 cups frozen mixed berries (raspberries, blueberries, blackberries)",
"1 cup plain Greek yogurt",
"1/2 orange juice",
"1/4 cup pineapple juice"
],
"instructions": "Add all of the ingredients to a blender and blend until smooth and creamy.",
"instructions_list": [
"Add all of the ingredients to a blender and blend until smooth and creamy."
],
"category": "Breakfast",
"yields": "2 servings",
"description": "This mixed berry recipe is filled with delicious mixed berries, tropical pineapple juice, and healthy fats thanks to Greek yogurt. It is smooth, creamy, and a delicious way to start your day!",
"total_time": 5,
"prep_time": 5,
"cuisine": "American",
"ratings": 5.0,
"ratings_count": 0,
"nutrients": {
"calories": "299 calories",
"sugarContent": "37.4 g",
"sodiumContent": "52.8 mg",
"fatContent": "7.8 g",
"saturatedFatContent": "3.5 g",
"transFatContent": "0 g",
"carbohydrateContent": "45.5 g",
"fiberContent": "3.9 g",
"proteinContent": "14.7 g",
"cholesterolContent": "18.5 mg"
},
"image": "https://allthehealthythings.com/wp-content/uploads/2021/06/triple-berry-smoothie-4-1-225x225.jpg"
}

0 comments on commit 371a49e

Please sign in to comment.