question

Upvotes

How to access the number of news per day for all Nasdaq-100 companies from 2019 to 2023 within Global Press?

How to access the number of news per day for all Nasdaq-100 companies from 2019 to 2023 within Global Press?

eikon-data-apipythonworkspace#technology
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
7.2k 18 2 8

Hi @jyothirmaie.mukthapuram ,


To access the news you should first get the index constituents and then for each constituent request news data:

Below are the examples for getting index constituents and requesting news using our latest LD Libraries for Python:

Getting Index constituents:

import lseg.data as ld
 
ld.open_session()
 
ld.get_data('0#.NDX', fields="TR.RIC")

screenshot-2024-10-15-at-095001.png

Requesting news:

ld.news.get_headlines(query="GILD.OQ", start = '2023-06-01', end="2024-10-15", count=1000)

screenshot-2024-10-15-at-095323.png

If you are interested only about news from Global Press you can change the query into "GILD.OQ and Source:GLOPRE".


Please note, that you will be able to ingest only the last 15 month news data via our Python libraries (Eikon, RD Libs, LD Libs).


Hope this helps


Best regards,

Haykaz


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.