Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for meganvskitchen #1391

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ Scrapers available for:
- `https://www.marthastewart.com/ <https://www.marthastewart.com/>`_
- `https://matprat.no/ <https://matprat.no/>`_
- `https://www.mccormick.com/ <https://www.mccormick.com/>`_
- `https://meganvskitchen.com/ <https://meganvskitchen.com/>`_
- `https://meljoulwan.com/ <https://meljoulwan.com/>`_
- `https://www.melskitchencafe.com/ <https://www.melskitchencafe.com/>`_
- `https://www.miljuschka.nl/ <https://www.miljuschka.nl/>`_
Expand Down
2 changes: 2 additions & 0 deletions recipe_scrapers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@
from .marthastewart import MarthaStewart
from .matprat import Matprat
from .mccormick import McCormick
from .meganvskitchen import MeganVsKitchen
from .meljoulwan import Meljoulwan
from .melskitchencafe import MelsKitchenCafe
from .miljuschka import Miljuschka
Expand Down Expand Up @@ -543,6 +544,7 @@
LittleSunnyKitchen.host(): LittleSunnyKitchen,
LeitesCulinaria.host(): LeitesCulinaria,
McCormick.host(): McCormick,
MeganVsKitchen.host(): MeganVsKitchen,
Miljuschka.host(): Miljuschka,
ModernHoney.host(): ModernHoney,
MomOnTimeout.host(): MomOnTimeout,
Expand Down
16 changes: 16 additions & 0 deletions recipe_scrapers/meganvskitchen.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from ._abstract import AbstractScraper
from ._grouping_utils import group_ingredients


class MeganVsKitchen(AbstractScraper):
@classmethod
def host(cls):
return "meganvskitchen.com"

def ingredient_groups(self):
return group_ingredients(
self.ingredients(),
self.soup,
".wprm-recipe-ingredient-group h4",
".wprm-recipe-ingredient",
)
48 changes: 48 additions & 0 deletions tests/test_data/meganvskitchen.com/meganvskitchen_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"author": "Megan",
"canonical_url": "https://meganvskitchen.com/crispy-ground-beef-tacos/",
"site_name": "Megan vs Kitchen",
"host": "meganvskitchen.com",
"language": "en-US",
"title": "Crispy Beef Tacos",
"ingredients": [
"1 pound ground beef (lean, 90%)",
"1 packet of taco seasoning",
"¾ cup enchilada sauce",
"2.5 cups Oaxaca cheese (or Mexican cheese or Monterey Jack )",
"10 corn tortillas",
"1 tbs olive oil",
"Toppings: (hot sauce, guacamole, salsa, pickled onions, sour cream, lime wedge)"
],
"instructions_list": [
"Preheat oven to 450F.",
"Brown beef in a skillet over medium-high high heat. Mix in taco seasoning and enchilada sauce. Bring to a simmer, then remove pan from the heat.",
"Wrap corn tortillas in a damp paper towel and microwave for 30-60 seconds or until they are pliable.",
"Brush one side of a tortilla with olive oil. Flip it so the oiled side is on the pan. Add 2 tablespoons of shredded cheese to half of the tortilla, top with 1/4 cup of ground beef, and 2 more tablespoons of shredded cheese. Fold the tortilla over the filling*.",
"Repeat with the remaining tortillas and range the tacos in a single layer on your baking sheet.",
"Bake for 16 minutes, or until the tortillas are crispy and the cheese has melted. Let them cool for 3 minutes before serving."
],
"category": "Main Course",
"yields": "10 servings",
"description": "These Crispy Ground Beef Tacos are an easy weeknight win. They only take 35 minutes to make, and everyone will love dipping them in salsa, queso, and guacamole!",
"total_time": 35,
"cook_time": 35,
"cuisine": "Mexican",
"ratings": 4.67,
"ratings_count": 9,
"nutrients": {
"servingSize": "2 taco",
"calories": "524 kcal",
"fatContent": "30 g",
"saturatedFatContent": "16 g",
"transFatContent": "0.6 g",
"carbohydrateContent": "28 g",
"sugarContent": "4 g",
"proteinContent": "36 g",
"fiberContent": "4 g"
},
"image": "https://meganvskitchen.com/wp-content/uploads/2023/07/Crispy-Beef-Tacos-Sheet-Pan.jpg",
"keywords": [
"Crispy Beef Tacos"
]
}
973 changes: 973 additions & 0 deletions tests/test_data/meganvskitchen.com/meganvskitchen_1.testhtml

Large diffs are not rendered by default.

77 changes: 77 additions & 0 deletions tests/test_data/meganvskitchen.com/meganvskitchen_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"author": "Megan",
"canonical_url": "https://meganvskitchen.com/cheesy-bean-and-rice-burrito/",
"site_name": "Megan vs Kitchen",
"host": "meganvskitchen.com",
"language": "en-US",
"title": "Cheesy Bean and Rice Burrito",
"ingredients": [
"¼ cup sour cream",
"¼ cup mayonnaise",
"2 tablespoons pickled jalapenos diced (optional)",
"2 tablespoons pickled jalapeno juice (optional)",
"1 teaspoon paprika",
"1 teaspoon cumin",
"½ teaspoon garlic powder",
"½ teaspoon onion powder",
"½ teaspoon chipotle chili powder or regular chili powder",
"8 9-inch flour tortillas",
"1 16-oz can of refried beans",
"2 2/3 cups Spanish rice (I used a box of New East’s Spanish rice which makes about 3 cups)",
"2 cups Mexican cheese blend"
],
"ingredient_groups": [
{
"ingredients": [
"¼ cup sour cream",
"¼ cup mayonnaise",
"2 tablespoons pickled jalapenos diced (optional)",
"2 tablespoons pickled jalapeno juice (optional)",
"1 teaspoon paprika",
"1 teaspoon cumin",
"½ teaspoon garlic powder",
"½ teaspoon onion powder",
"½ teaspoon chipotle chili powder or regular chili powder"
],
"purpose": "Creamy Jalapeno Sauce"
},
{
"ingredients": [
"8 9-inch flour tortillas",
"1 16-oz can of refried beans",
"2 2/3 cups Spanish rice (I used a box of New East’s Spanish rice which makes about 3 cups)",
"2 cups Mexican cheese blend"
],
"purpose": "Cheesy Bean and Rice Burrito"
}
],
"instructions_list": [
"In a small bowl, mix together the creamy jalapeno sauce ingredients.",
"Lay a tortilla flat, spread 1/4 cup of refried beans, 1/3 cup of Spanish rice, 1/4 cup of Mexican cheese, and 1/2 tablespoon* of jalapeno sauce down the middle. Roll into a burrito.",
"Fold the burrito.",
"Place a skillet over medium heat. Add burrito seam side down. Toast on both sides till brown."
],
"category": "Dinner",
"yields": "8 servings",
"description": "Inspired by Taco Bell, this copycat Cheesy Bean and Rice Burrito is easy to make, cheap, and so much better than the original.",
"total_time": 35,
"cook_time": 15,
"prep_time": 20,
"cuisine": "American",
"ratings": 4.79,
"ratings_count": 37,
"nutrients": {
"servingSize": "1 Burrito",
"calories": "385 kcal",
"fatContent": "15.1 g",
"saturatedFatContent": "6.9 g",
"carbohydrateContent": "51 g",
"sugarContent": "2.1 g",
"proteinContent": "13.4 g",
"fiberContent": "3.2 g"
},
"image": "https://meganvskitchen.com/wp-content/uploads/2022/11/IMG_5024-scaled.jpg",
"keywords": [
"cheesy bean and rice burrito"
]
}
957 changes: 957 additions & 0 deletions tests/test_data/meganvskitchen.com/meganvskitchen_2.testhtml

Large diffs are not rendered by default.

Loading