How to access the number of news per day for all Nasdaq-100 companies from 2019 to 2023 within Gl...

...obal Press?

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

Best Answer

  • aramyan.h
    aramyan.h admin
    Answer ✓

    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