For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 1 5

How can I retrieve news stories with invalid JSON characters in Eikon API?

I am currently working on a project in Python and making use of the Eikon API to collect news data and calculate their sentiment. I use the get_news_story() function to get the story text for calculating its sentiment. In doing so, I sometimes get an error as shown below:

1636974412798.pngI can't analyze the text in the news story for invalid characters without collecting it, and I can't collect it if it contains an invalid character. Can anyone help me with this issue please?

eikon-data-apinewsjsonsentiment
1636974412798.png (25.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
4.3k 6 5 8

hi @azzopardic ,

This sounds like an issue in the backend side. Could you please provide this information with the code used and submit the ticket to the Refinitiv helpdesk for an investigation.

select Product and Content > The product does not work as expected


1636981724205.png



1636981724205.png (17.7 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.