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 innit.com. #239

Merged
merged 4 commits into from
Oct 12, 2020
Merged
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 @@ -46,6 +46,7 @@
from .hostthetoast import Hostthetoast
from .hundredandonecookbooks import HundredAndOneCookbooks
from .ig import IG
from .innit import Innit
from .inspiralized import Inspiralized
from .jamieoliver import JamieOliver
from .justbento import JustBento
Expand Down Expand Up @@ -150,6 +151,7 @@
Hostthetoast.host(): Hostthetoast,
HundredAndOneCookbooks.host(): HundredAndOneCookbooks,
IG.host(): IG,
Innit.host(): Innit,
Inspiralized.host(): Inspiralized,
JamieOliver.host(): JamieOliver,
JustBento.host(): JustBento,
Expand Down
32 changes: 32 additions & 0 deletions recipe_scrapers/innit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from ._abstract import AbstractScraper

"""
Note that innit hosts recipes for several companies. I found it while looking at centralmarket.com
"""


class Innit(AbstractScraper):
ptindall marked this conversation as resolved.
Show resolved Hide resolved
@classmethod
def host(self, domain="com"):
return f"innit.{domain}"

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