Skip to content

Commit

Permalink
Merge pull request #252 from wkarney/master
Browse files Browse the repository at this point in the history
Add support for kingarthurbaking.com
  • Loading branch information
bfcarpio committed Oct 29, 2020
2 parents 05b01f4 + b683e16 commit e42e9ae
Show file tree
Hide file tree
Showing 5 changed files with 1,973 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Scrapers available for:
- `https://jamieoliver.com/ <https://jamieoliver.com>`_
- `https://justbento.com/ <https://justbento.com>`_
- `https://kennymcgovern.com/ <https://kennymcgovern.com>`_
- `https://www.kingarthurbaking.com <https://www.kingarthurbaking.com>`_
- `https://kochbar.de/ <https://kochbar.de>`_
- `https://kuchnia-domowa.pl/ <https://www.kuchnia-domowa.pl/>`_
- `http://livelytable.com/ <http://livelytable.com/>`_
Expand Down Expand Up @@ -219,7 +220,7 @@ FAQ
scraper.instructions() # etc.
Spacial thanks to:
Special thanks to:
------------------

All the `contributors that helped improving <https://github.com/hhursev/recipe-scrapers/graphs/contributors>`_ the package. You are awesome!
2 changes: 2 additions & 0 deletions recipe_scrapers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
from .jamieoliver import JamieOliver
from .justbento import JustBento
from .kennymcgovern import KennyMcGovern
from .kingarthur import KingArthur
from .kochbar import Kochbar
from .kuchniadomowa import KuchniaDomowa
from .livelytable import LivelyTable
Expand Down Expand Up @@ -162,6 +163,7 @@
JamieOliver.host(): JamieOliver,
JustBento.host(): JustBento,
KennyMcGovern.host(): KennyMcGovern,
KingArthur.host(): KingArthur,
Kochbar.host(): Kochbar,
KuchniaDomowa.host(): KuchniaDomowa,
LivelyTable.host(): LivelyTable,
Expand Down
28 changes: 28 additions & 0 deletions recipe_scrapers/kingarthur.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from ._abstract import AbstractScraper


class KingArthur(AbstractScraper):
@classmethod
def host(cls):
return "kingarthurbaking.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 e42e9ae

Please sign in to comment.