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

Problem of downloading News data

Hello,


I am an academic and working on a research project.

I would like to download all news either in the Turkish language OR related to Turkey from the earliest possible date.

Downloading this data has proven to be quite challenging. Could you assist me with this task? I can use python.

python#technology#contentnews
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
Accepted
84.6k 287 53 77

@handan.celik

Thank you for reaching out to us.

I assume that you have Eikon or Workspace application running on the machine. Therefore, you can use Refinitiv Data Library for Python to retrieve data.

The examples are available on GitHub. You refer to the news examples.

To search for news headlines, you can use the same query used in the News Monitor app. For example, the news query for the Turkish language is LTR.

1719373053786.png

For example:

rd.news.get_headlines("LTR", start="2024-06-01", end="2024-06-02", count=100)

The output is:

1719373319065.png



1719373053786.png (4.0 KiB)
1719373319065.png (19.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
27k 65 17 14

Hello @handan.celik

Please note that once you got the News Headlines and story id(s) from the query that provided by my colleague above, you can use the following code to get the News Story:

rd.news.get_story("<story_id>", format=<format>)

The format can be:

  • rd.news.Format.HTML
  • rd.news.Format.TEXT

1719375093373.png



1719375093373.png (89.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.

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.