How can I get all news and 1000 news

q = "R:VOD.L AND Topic:GB" headlines = tr.get_news_headlines(query=q, date_from=start_date, date_to=end_date, count=100)

Hi, how can I modify the python request above to get:

1. All News

2. A 1000 news, not just 100.

Best Answer

  • nick.zincone
    nick.zincone admin
    Answer ✓

    Hi @Laarni Evelyn Acierto.Santiago,

    The get_news_headlines() method does define an upper limit of 100 results. When you look at the results based on the date criteria, the request will retrieve the last N headlines, up to 100, based on your date_to specification. For example,

    image

    In the above query, my results went back as far as 2018-01-19. Unfortunately, in order for you to retrieve additional headlines, you will have to execute multiple get_news_headlines() queries based on different date ranges.

Answers