Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Refinitiv Data Platform /
avatar image
REFINITIV
Question by Prasad.Acharya · May 23, 2020 at 10:17 PM · rdprefinitiv data platformrdp library.

Unable to fetch Refinitiv Dataplatform News Headlines

Hi All,


I am unable to fetch news headlines when using

rdp.get_news_headlines('Trump')

I am getting no response from the server. The Jupyter code cell finishes running but nothing happens. If I try to place it in a variable and print that variable, it returns nothing. I think i may have a possible authorization issue and I am not sure how to fix it. Please assist.

I open the session using:

rdp.open_platform_session(
    APP_KEY,
    rdp.GrantPassword(
        username = 'RDP_LOGIN',
        password = 'RDP_PASSWORD'
    )
)

Please help as soon as you can!

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

4 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Prasad.Acharya · May 28, 2020 at 09:42 AM

@moragodkrit I do not receive any error after open_platform_session.

I have tried that example, and nothing happens after 'rdp.get_news_headlines'. I believe it may be an authorization issue as I am not able to access this API on the API Playground.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by moragodkrit.chumsri_1 · May 25, 2020 at 01:28 AM

@Prasad.Acharya

  • Any error message after open_platform_session?

Please make sure that you are using correct credentials such as AppKey.

  • Can you try RDP python example from https://github.com/Refinitiv-API-Samples/Example.RDPLibrary.Python ?


You have to modify credentials in credentials.ipynb before running our example. And then you can test it with News example such as 1.4.0 - Function - News.ipynb.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by moragodkrit.chumsri_1 · May 25, 2020 at 02:12 AM

@Prasad.Acharya

Just check the RDP codes again and I just realize that I already updated the News Headline endpoint in RDP source file to V1 while the default RDP python library still uses beta1. And it looks like beta1 does not work now.

You can manually change the news headline endpoint from the below folder.
<Python or Conda install path>\Lib\site-packages\refinitiv\dataplatform\content\news

And then open news_headlines.py

And update

_URL_NEWSHEADLINES = "data/news/beta1/headlines"

to

_URL_NEWSHEADLINES = "data/news/v1/headlines"

Then restart your jupyternotebook process/kernel.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Prasad.Acharya · May 28, 2020 at 09:43 AM 0
Share

@moragodkrit Thank you for your suggestion! I tried it out, but to no avail. I am still having the same issue as before. It still returns nothing.

avatar image
REFINITIV
Answer by wasin.waeosri · Jun 08, 2020 at 04:19 AM

Hello @Prasad.Acharya

Could you please try the RDP /data/news/v1/headlines API endpoint directly in the https://apidocs.refinitiv.com/Apps/ApiDocs web site with your RDP account?


annotation-2020-06-08-111917.png (102.2 KiB)
Comment
SupDev1

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

Can I confirm Eikon real time feeds using RDP

How to get all available fields for a given RIC with C# and RDP library

Is it possible to get a ship (tanker) positioning using RDP?

RDP Streaming/Pricing/v1 set price update frequency

Multiple EventTypes in a Events History call

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges