From f7aeb7b490188cea89a084d19b9c1c1b11ea7c84 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Mar 2025 22:19:04 +0530 Subject: [PATCH] ... --- recipes/economist.recipe | 2 +- recipes/economist_free.recipe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: