diff --git a/recipes/economist.recipe b/recipes/economist.recipe index 883a7e4c5d..0648e9e228 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -120,7 +120,7 @@ def process_web_node(node): def load_article_from_web_json(raw): # open('/t/raw.json', 'w').write(raw) body = '' - data = json.loads(raw)['props']['pageProps']['cp2Content'] + data = json.loads(raw)['props']['pageProps']['content'] body += f'
{data.get("flyTitle", "")}
' body += f'

{data["headline"]}

' if data.get('rubric') and data.get('rubric') is not None: diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index 883a7e4c5d..0648e9e228 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -120,7 +120,7 @@ def process_web_node(node): def load_article_from_web_json(raw): # open('/t/raw.json', 'w').write(raw) body = '' - data = json.loads(raw)['props']['pageProps']['cp2Content'] + data = json.loads(raw)['props']['pageProps']['content'] body += f'
{data.get("flyTitle", "")}
' body += f'

{data["headline"]}

' if data.get('rubric') and data.get('rubric') is not None: