From a52e91eb9474c1ca67bb1d1152c22c7c2345a962 Mon Sep 17 00:00:00 2001 From: James Addison <55152140+jayaddison@users.noreply.github.com> Date: Mon, 12 Sep 2022 01:52:28 +0100 Subject: [PATCH] Add updated domain name for MobKitchen scraper (#600) * Add updated domain name for MobKitchen scraper Resolves #597 * Fixup / nitpick: use more-Pythonic argument name 'cls' for first argument to classmethod 'host' --- recipe_scrapers/__init__.py | 3 ++- recipe_scrapers/mobkitchen.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/recipe_scrapers/__init__.py b/recipe_scrapers/__init__.py index ed8064806..8f03274bd 100644 --- a/recipe_scrapers/__init__.py +++ b/recipe_scrapers/__init__.py @@ -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, diff --git a/recipe_scrapers/mobkitchen.py b/recipe_scrapers/mobkitchen.py index cecf1835e..05dce4782 100644 --- a/recipe_scrapers/mobkitchen.py +++ b/recipe_scrapers/mobkitchen.py @@ -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()