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

  • @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

  • Thank you so much! and how to get it by order?

    I can only get them order by the latest..

    1703067423571.pngand if there is a way i can find it in API document. please let me know.

    I have already search for it in 'Eikon API document', however i can't find the way to get them by order desc.


    and Thank you for your help!

  • @jwlee08

    According to this discussion, you can use the M:1RS news code for the most read news.

    However, the behavior may not be similar to the news monitor.

    You may contact the helpdesk team directly to check for other news codes.