The way to get news with the query it shows.

Hi,

I followed Eikon Python api, but it gave me different data. please help me.

1703028087809.png

I would like to get these news, so i put that query in my python code, but it gives me the latest news, not what i wanted.


Here is what i did and what it provided.

1703028071616.png

please let me know, what is wrong..

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @jwlee08

    Thank you for reaching out to us.

    The queries are diffrerent.

    1703055962368.png

    You can use the following code in Eikon Data API.

    df = ek.get_news_headlines('( Topic:NEWS1 OR Topic:SREP OR Topic:EXCLSV ) NOT ( AA OR Topic:TOPNP OR \\\"Table\\\" OR \\\"Brief\\\" OR Topic:TAL OR Topic:MKTREP ) AND Language:LEN AND Source:RTRS',count=100)
    df

Answers