question

Upvotes
Accepted
19 1 1 6

News Retrieval RDP

Hi all,

I retrieve some news via RDP api like this:

...
query = 'EQMEVN'
news.headlines.Definition(query=query, count=100).get_data().data.df
...

So I get this the list of news as expected:

>>> news.headlines.Definition(query=query, count=100).get_data().data.df
                                                                  headline                                       storyId sourceCode
versionCreated
2024-02-27 09:59:36.000  UPDATE 3-Dubai to sell 25% stake in public par...  urn:newsml:reuters.com:20240227:nL2N3FC0AX:6    NS:RTRS
2024-02-27 08:58:43.000  RPT-BREAKINGVIEWS-Top JPMorgan banker spots va...  urn:newsml:reuters.com:20240227:nL3N3FC278:2    NS:RTRS
2024-02-27 08:35:14.233  INDIA'S NIFTY PSU BANK INDEX <.NIFTYPSU> FALLS...  urn:newsml:reuters.com:20240227:nP8N3ET0DA:1    NS:RTRS
2024-02-27 08:31:39.000  BUZZ-UK's Croda top FTSE 100 loser on lower pr...  urn:newsml:reuters.com:20240227:nL3N3FC21H:1    NS:RTRS
2024-02-27 08:30:36.620  INDIA'S NIFTY OIL AND GAS INDEX <.NIFOILGAS> E...  urn:newsml:reuters.com:20240227:nP8N3ET0D9:1    NS:RTRS
...                                                                    ...                                           ...        ...
2024-02-26 04:29:20.110  INDIA'S NIFTY IT INDEX <.NIFTYIT> FALLS, LAST ...  urn:newsml:reuters.com:20240226:nP8N3ET0CW:1    NS:RTRS
2024-02-26 04:04:39.000  UPDATE 2-S.Korea unveils reform steps to tackl...  urn:newsml:reuters.com:20240226:nL2N3FB014:8    NS:RTRS
2024-02-26 02:37:56.000  SINGAPORE STOCKS <.STI> FALL AS MUCH AS 1% TO ...  urn:newsml:reuters.com:20240226:nL3N3FB0NF:1    NS:RTRS
2024-02-26 02:37:48.000                     BRIEF-グリーンブルックTMS、ナスダック上場廃止を発表  urn:newsml:reuters.com:20240226:nL6N3FB00I:1    NS:RTRS
2024-02-26 02:29:49.000                     《圖表新聞》全球股票基金出現資金外流,因通脹擔憂削弱降息預期  urn:newsml:reuters.com:20240226:nL6T3FB01Q:1    NS:RTRS


But as you see, the rdp retrieves only news with this small orange sign:
1709028303036.pngBut the other news are missing. Even if I take a StoryID of a missing news...
1709028408958.png... I cannot retrieve it via api:

storyID = 'urn:newsml:newsroom.refinitiv.com:20240227:nNRArwz5ji:1'
news.story.Definition(storyID).get_data()

I get "News not found". With the news, which appear in the headlines() call, this works as expected.

Pls advise.

python#product#contentnews
1709028303036.png (201.7 KiB)
1709028408958.png (101.3 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.

Hi @Anufriyev ,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thank you,

AHS

@Anufriyev

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

Upvotes
Accepted
14.2k 30 5 10

As the RD Platform session is taking data from RDP API and I can also reproduce this issue with RDP REST API. Hence, I raised ticket number 13373340 on behalf of you and the team is going to investigate and contact you to assist on this.

1709807846090.png



1709807846090.png (37.8 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.

Upvotes
79.2k 251 52 74

@Anufriyev

Thank you for reaching out to us.

I can see those headlines that the order may be different from LSEG Workspace.

response = news.headlines.Definition(query="EQMEVN", count=100, date_to="2024-02-27T01:00:00.000").get_data()
response.data.df[response.data.df["sourceCode"]=="NS:NEWJAP"]

1709105629863.png

For the story:

1709105895894.png

The storyId for that news is "urn:newsml:newsroom:20240227:nNRArwz5ji:0".

response = news.story.Definition("urn:newsml:newsroom:20240227:nNRArwz5ji:0").get_data()
response.data.story.content.text




1709105629863.png (17.4 KiB)
1709105895894.png (14.8 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.

Upvotes
19 1 1 6

Dear @Jirapongse
Thank you for looking into my issue.
You are writing, that you can see the news...

1709108408764.png

... but I cannot. Does that mean my authorizations are limited?

I tried to use the storyID you provided:

storyID = 'urn:newsml:newsroom:20240227:nNRArwz5ji:0'
HTML(rd.news.get_story(storyID, format=rd.news.Format.HTML))

... it gives me an error message: "Error code 503 | Error while calling the NEP backend: sid urn:newsml:newsroom:20240227:nNRArwz5ji:0 is invalid", while if storyID contains "refinitiv.com", it says "Error code 404 | Error while calling the NEP backend: Story not found"

storyID = 'urn:newsml:newsroom.refinitiv.com:20240227:nNRArwz5ji:1'
HTML(rd.news.get_story(storyID, format=rd.news.Format.HTML))

Do you have ideas?


1709108408764.png (12.9 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.

Upvotes
79.2k 251 52 74

@Anufriyev

Thank you for reaching out to us.

Are you using the platform.rdp session?

I got the following output if I ran the following code.

1709110004478.png

This is the output from News Monitor.

1709110058902.png

Regarding the storyId, I got the same error if I used the platform.rdp session.



1709110004478.png (60.3 KiB)
1709110058902.png (54.1 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.

Upvotes
19 1 1 6

Dear @Jirapongse

Thank you for quick response. Yes, I use rdp platform session.


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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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