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

Add support for swissmilk.ch #1498

Open
wants to merge 2 commits 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
2 changes: 2 additions & 0 deletions recipe_scrapers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@
from .sunset import Sunset
from .sweetcsdesigns import SweetCsDesigns
from .sweetpeasandsaffron import SweetPeasAndSaffron
from .swissmilk import SwissMilk
from .tasteatlas import TasteAtlas
from .tasteau import TasteAU
from .tasteofhome import TasteOfHome
Expand Down Expand Up @@ -646,6 +647,7 @@
StacyLing.host(): StacyLing,
StrongrFastr.host(): StrongrFastr,
SugarHero.host(): SugarHero,
SwissMilk.host(): SwissMilk,
TasteAtlas.host(): TasteAtlas,
TheCookieRookie.host(): TheCookieRookie,
TheCookingGuy.host(): TheCookingGuy,
Expand Down
7 changes: 7 additions & 0 deletions recipe_scrapers/swissmilk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from ._abstract import AbstractScraper


class SwissMilk(AbstractScraper):
@classmethod
def host(cls):
return "swissmilk.ch"
31 changes: 31 additions & 0 deletions tests/test_data/swissmilk.ch/swissmilk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"author": "Swissmilk",
"canonical_url": "https://www.swissmilk.ch/de/rezepte-kochideen/rezepte/LM200910_59/tomatenrisotto/",
"site_name": "Swissmilk",
"host": "swissmilk.ch",
"language": "de",
"title": "Tomatenrisotto",
"ingredients": [
"1 Knoblauchzehe, gepresst",
"½ Zwiebel, fein gehackt",
"Butter zum Dünsten",
"150 g Risottoreis, z.B. Carnaroli",
"3 EL Tomatenpüree",
"1 dl Weisswein oder Gemüsebouillon",
"3,5 - 4 dl Gemüsebouillon, heiss",
"3 EL Schweizer Mascarpone",
"2 EL fein gehackter Oregano",
"2 Tomaten, halbiert, entkernt, klein gewürfelt",
"2 - 3 EL geriebener Sbrinz AOP",
"Pfeffer aus der Mühle",
"Oregano zum Garnieren"
],
"instructions_list": [
"Knoblauch und Zwiebel in Butter andünsten. Reis und Tomatenpüree kurz mitdünsten. Mit Wein oder Bouillon ablöschen, einkochen. Nach und nach heisse Bouillon dazugiessen, unter häufigem Rühren 15-20 Minuten al dente kochen.",
"Mascarpone, Oregano, Tomaten und Sbrinz daruntermischen, nur heiss werden lassen, mit Pfeffer würzen, garnieren."
],
"yields": "2 servings",
"description": "Risotto mal anders: wunderbares Aroma von Tomaten und Oregano und herrlich sämig dank Mascarpone. Jede Gabel schmeckt wie Ferien im Tessin.",
"total_time": 30,
"image": "https://res.cloudinary.com/swissmilk/image/fetch/w_1600,c_fill,g_auto,f_auto,q_auto:eco,ar_16:9/https://api.swissmilk.ch/wp-content/uploads/2019/12/LM200910_59_Tomatenrisotto-2560x1707.jpg"
}
Loading