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:
I 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?