fix ATK scraper
This commit is contained in:
parent
ae3835b541
commit
0f4cd4b17c
@ -46,13 +46,13 @@ class CooksIllustrated(AbstractScraper):
|
|||||||
def instructions(self):
|
def instructions(self):
|
||||||
if not self.recipe:
|
if not self.recipe:
|
||||||
self.get_recipe()
|
self.get_recipe()
|
||||||
if 'headnote' in self.recipe:
|
if self.recipe.get('headnote', False):
|
||||||
i = ['Note: ' + self.recipe.get('headnote', '')]
|
i = ['Note: ' + self.recipe.get('headnote', '')]
|
||||||
else:
|
else:
|
||||||
i = []
|
i = []
|
||||||
return "\n".join(
|
return "\n".join(
|
||||||
i
|
i
|
||||||
+ [self.recipe.get('whyThisWorks','')]
|
+ [self.recipe.get('whyThisWorks', '')]
|
||||||
+ [
|
+ [
|
||||||
instruction['fields']['content']
|
instruction['fields']['content']
|
||||||
for instruction in self.recipe['instructions']
|
for instruction in self.recipe['instructions']
|
||||||
|
Loading…
Reference in New Issue
Block a user