updated ATK scraper to include header notes in instructions

This commit is contained in:
smilerz 2021-04-17 12:49:06 -05:00
parent f594ba4c69
commit b9ee77709b

View File

@ -45,7 +45,8 @@ class CooksIllustrated(AbstractScraper):
if not self.recipe: if not self.recipe:
self.get_recipe() self.get_recipe()
return "\n".join( return "\n".join(
[self.recipe['whyThisWorks']] ['Note: ' + self.recipe.get('headnote', '')]
+ [self.recipe['whyThisWorks']]
+ [ + [
instruction['fields']['content'] instruction['fields']['content']
for instruction in self.recipe['instructions'] for instruction in self.recipe['instructions']