Skip to content

Commit

Permalink
Justataste scraper (#435)
Browse files Browse the repository at this point in the history
* Add scraper for monsieur-cuisine.com (#433)

* Add monsieur-cuisine.com

* Update README

* Remove code protection

As discussed in PR review. Objective is to have high code coverage and
let the error raised if somemthing change on website side.

* Added missing tests

Co-authored-by: Oncleben31 <[email protected]>
  • Loading branch information
RamiAwar and oncleben31 authored Oct 10, 2021
1 parent fde8dce commit 64295f1
Show file tree
Hide file tree
Showing 5 changed files with 1,099 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://jamieoliver.com/ <https://jamieoliver.com>`_
- `https://jimcooksfoodgood.com/ <https://jimcooksfoodgood.com/>`_
- `https://joyfoodsunshine.com/ <https://joyfoodsunshine.com>`_
- `https://justataste.com/ <https://justataste.com>`_
- `https://justbento.com/ <https://justbento.com>`_
- `https://kennymcgovern.com/ <https://kennymcgovern.com>`_
- `https://www.kingarthurbaking.com <https://www.kingarthurbaking.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 @@ -77,6 +77,7 @@
from .jamieoliver import JamieOliver
from .jimcooksfoodgood import JimCooksFoodGood
from .joyfoodsunshine import Joyfoodsunshine
from .justataste import JustATaste
from .justbento import JustBento
from .kennymcgovern import KennyMcGovern
from .kingarthur import KingArthur
Expand Down Expand Up @@ -247,6 +248,7 @@
JamieOliver.host(): JamieOliver,
JimCooksFoodGood.host(): JimCooksFoodGood,
Joyfoodsunshine.host(): Joyfoodsunshine,
JustATaste.host(): JustATaste,
JustBento.host(): JustBento,
KennyMcGovern.host(): KennyMcGovern,
KingArthur.host(): KingArthur,
Expand Down
28 changes: 28 additions & 0 deletions recipe_scrapers/justataste.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from ._abstract import AbstractScraper


class JustATaste(AbstractScraper):
@classmethod
def host(cls):
return "justataste.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()
Loading

0 comments on commit 64295f1

Please sign in to comment.