Update New York Times Book Review

This commit is contained in:
Kovid Goyal 2022-02-28 10:59:26 +05:30
parent 833ba43207
commit b7db7cf446
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -100,7 +100,7 @@ def process_image_block(lines, block, data):
def json_to_html(raw):
data = json.loads(raw)
data = json.loads(raw.replace(':undefined', ':null'))
data = data['initialState']
article = next(iter(data.values()))
body = data[article['sprinkledBody']['id']]