Regarding NEWS URLs via Python API

Hemant
Hemant Newcomer

Hi,

I am trying to retrieve the news regarding companies (based on RIC inputs) but I have the following concerns, I need help in order to get them sorted.
1) I am getting same news items (headlines) from multiple source codes. How do I ensure I get only unique news headline and not the repeated ones. (IMG1 attached)

LSEG1.PNG

2) I am trying to get the stroy corresponding to these headlines using the following:

LSEG2.PNG

Where ever it is a urn:newsml type initials in the storyid, I am getting the stroy response, but I am not able to get the stroy response when it is a urn:link type initials in the storyid. How Do i get the stories corresponding to urn:link type story ids?
Is there a way to get the URLs corresponding to the storyids having urn:link type initials?

3) Is there a mapping sheet that can relate the sourcecode of NS:RTRS to "reuters" and on the similar likes to other news providers like LIVEMI to Livemint, etc?

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Hemant

    Thank you for reaching out to us.

    Those headlines have different story IDs and source codes. You may need contact the helpdesk team via MyAccount to check if there are any filters in the query that can be used to remove the duplicated headlines from different souces. Otherwise, you may need to filter it in the application code.

    To get the urn:link story, you can try the following code.

    image.png

    The respose will contain the "webURL".

    For the news codes, please refer to the Machine Readable News - News codes document.