Skip to content

Commit

Permalink
Add updated domain name for MobKitchen scraper (#600)
Browse files Browse the repository at this point in the history
* Add updated domain name for MobKitchen scraper

Resolves #597

* Fixup / nitpick: use more-Pythonic argument name 'cls' for first argument to classmethod 'host'
  • Loading branch information
jayaddison committed Sep 12, 2022
1 parent 9ecaec3 commit a52e91e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion recipe_scrapers/__init__.py
Expand Up @@ -347,7 +347,8 @@
Mindmegette.host(): Mindmegette,
Minimalistbaker.host(): Minimalistbaker,
Misya.host(): Misya,
MobKitchen.host(): MobKitchen,
MobKitchen.host(domain="mob.co.uk"): MobKitchen,
MobKitchen.host(domain="mobkitchen.co.uk"): MobKitchen,
MomsWithCrockPots.host(): MomsWithCrockPots,
MonsieurCuisine.host(): MonsieurCuisine,
MotherThyme.host(): MotherThyme,
Expand Down
4 changes: 2 additions & 2 deletions recipe_scrapers/mobkitchen.py
Expand Up @@ -26,8 +26,8 @@ def __init__(self, *args, **kwargs):
self.schema = SchemaOrg(recipe_schema, raw=True)

@classmethod
def host(cls):
return "mobkitchen.co.uk"
def host(cls, domain="mobkitchen.co.uk"):
return domain

def author(self):
return self.schema.author()
Expand Down

0 comments on commit a52e91e

Please sign in to comment.