Dear Eikon,
There is an error inside the ek.get_news_story function. This error is inside line:
if raw_output:
return json_data
else:
---> return json_data["story"]["storyHtml"] <---- this line
This error occurs with the following params:
if storyId is a webUrl
example:
storyId = "urn:link:webnews:20201030:nNRAdcocad:0"
data = ek.get_news_story(storyId=storyId, raw_output=True)
gives this output: {“webURL”: 'www.'}
if raw_output = False then the error occurs because the term "story" is not inside the dictionary 'data'.