Skip to content

Commit

Permalink
add sunset.com (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
brett committed Dec 2, 2022
1 parent 0967f5e commit 05a04a8
Show file tree
Hide file tree
Showing 5 changed files with 1,093 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.rst
Expand Up @@ -271,6 +271,7 @@ Scrapers available for:
- `https://streetkitchen.hu/ <https://streetkitchen.hu>`_
- `https://sunbasket.com/ <https://sunbasket.com>`_
- `https://sundpaabudget.dk/ <https://sundpaabudget.dk>`_
- `https://www.sunset.com/ <https://www.sunset.com/>`_
- `https://sweetcsdesigns.com/ <https://www.sweetcsdesigns.com/>`_
- `https://sweetpeasandsaffron.com/ <https://sweetpeasandsaffron.com/>`_
- `https://tasteofhome.com <https://tasteofhome.com>`_
Expand Down
2 changes: 2 additions & 0 deletions recipe_scrapers/__init__.py
Expand Up @@ -187,6 +187,7 @@
from .streetkitchen import StreetKitchen
from .sunbasket import SunBasket
from .sundpaabudget import SundPaaBudget
from .sunset import Sunset
from .sweetcsdesigns import SweetCsDesigns
from .sweetpeasandsaffron import SweetPeasAndSaffron
from .tasteofhome import TasteOfHome
Expand Down Expand Up @@ -422,6 +423,7 @@
StreetKitchen.host(): StreetKitchen,
SunBasket.host(): SunBasket,
SundPaaBudget.host(): SundPaaBudget,
Sunset.host(): Sunset,
SweetCsDesigns.host(): SweetCsDesigns,
SweetPeasAndSaffron.host(): SweetPeasAndSaffron,
TasteOfHome.host(): TasteOfHome,
Expand Down
29 changes: 29 additions & 0 deletions recipe_scrapers/sunset.py
@@ -0,0 +1,29 @@
# mypy: disallow_untyped_defs=False
from ._abstract import AbstractScraper


class Sunset(AbstractScraper):
@classmethod
def host(cls):
return "sunset.com"

def title(self):
return self.schema.title()

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()

def ratings(self):
return self.schema.ratings()

0 comments on commit 05a04a8

Please sign in to comment.