bug fix url import

This commit is contained in:
smilerz
2021-04-05 21:41:00 -05:00
parent 747d146389
commit 2fe6788ce5
6 changed files with 54 additions and 23 deletions

View File

@@ -55,7 +55,6 @@ class CooksIllustrated(AbstractScraper):
raise NotImplementedError("This should be implemented.")
def get_recipe(self):
# TODO add missing data to schema.data
j = json.loads(self.soup.find(type='application/json').string)
name = list(j['props']['initialState']['content']['documents'])[0]
self.recipe = j['props']['initialState']['content']['documents'][name]