Get the data file from HNXB

Dear, I am using eikon library to try to get the HNXB (Hanoi Stock Exchange Bond market news) data excel file or the data set in those news screen. Does anyone try it yet?

Best Answer

Answers

  • @khangdiep So to get all news from the HNXB source please try:

    headlines = ek.get_news_headlines('Source:HNXB',count=100)
    headlines

    1627979534211.png


    If you want to get the actual text of the news stories you can use the second news api call, get_news_story:

    from IPython.display import HTML
    story = ek.get_news_story(headlines['storyId'][0])
    HTML(story)

    I hope this can help.

  • Hi Jason , thanks for your response but my purpose is not getting the news or the text, each news has a link to the excel file. My goal is to get the EXCEL FILE or the Data Set in Excel file.