My clients want to get news and its story without any tags(eg </p>or<p>) Is it possible to get news only readable story? Plus, to search news RIC or Topic are available?(eg LJA(Japanese news all) or FRX(FX news all) Any information is appreciated.
Kind regards, Koji
The news query language is fully supported, so you can construct your query in the News monitor app first.
Consider using a third-party library for getting the raw text out of html such as BeautifulSoup4 or any other alternative.
from bs4 import BeautifulSoup import eikon as tr tr.set_app_id('sample') story = tr.get_news_story(story_id='urn:newsml:reuters.com:20180129:nKjtAFQj:1') soup = BeautifulSoup(story, 'html5lib') soup.get_text()