Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

get_news_headline not working for specific query

Hi,

I am trying to retrieve English Reuters news articles for DAX companies by using "get_news_headline".

The search queries "R:BMWG.DE AND Language:LEN" and "R:BMWG.DE AND Source:RTRS" are working just fine. But when I am trying to use the combination of the search criteria with the query "R:BMWG.DE AND Language:LEN AND Source:RTRS" my script gets stuck. I've already tried to build the query in all possible ways but it is not working. Is there any limitation or rule for building those queries?

Thanks in advance!

eikoneikon-data-apipythonworkspace#technologypython apinews
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.

1 Answer

· Write an Answer
Upvotes
Accepted
27k 65 17 14

Hello @refinitiv.user1

I have tried with the strategic Data Library for Python (PyPI).

import refinitiv.data as rd
#Open Session
rd.open_session()
#Get News
rd.news.get_headlines("R:BMWG.DE AND Language:LEN AND Source:RTRS", count=10)

It works fine on my end as follows:

news.png

Can you try with the Data Library for Python?

You can find more detail about how to upgrade from the Eikon Data API to Data Library on this Upgrade from using Eikon Data API to the Data library article.


news.png (81.7 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.

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.