LSEG Data Library for Python

get_data

Sends a request to the Delivery Platform (formerly Refinitiv Data Platform) to retrieve the data specified in the news.top_news.Definition object.

Module

data.content.news.top_news

Syntax

get_data(sesison, on_response)

Parameters

Value Description Data type Optional Default value
session Session object. If session parameters are not defined, the default session will be used. Session object Yes None
on_response User-defined callback function to process the final response containing all requested headlines. Callable Yes None

Returned value

Top news response

Usage

The following example demonstrates how to retrieve a particular top news headlines package with the particular revision:

response = news.top_news.Definition(
    top_news_id="urn:newsml:reuters.com:20020923:SPDOC_119827232002",
    revision_id=811151
).get_data()


print(response.data.df.to_string())

This example produces the following output:

Response
versionCreated headline snippet storyId imageId
2023-04-10 08:59:00 Intel leak has U.S. officials bracing for impact at home and abroad The U.S. national security community is grappling with fallout from the release of dozens of secret documents, including the impact on sensitive information-sharing within the government and ties with other countries, two U.S. officials said. urn:newsml:reuters.com:20230410:nL1N36C0BD 2023-04-10T061856Z_1_QS5_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 10:02:00 Japan's new central bank chief vows to guide policy 'flexibly' Japan's new central bank governor Kazuo Ueda said on Monday he will communicate closely with the government and guide monetary policy flexibly, warning of high uncertainty over the economic outlook. urn:newsml:reuters.com:20230410:nL1N36D06H 2023-04-10T061857Z_1_WX7_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 10:38:00 China ends Taiwan drills after practising blockades, precision strikes China ended three days of military drills around Taiwan on Monday saying they had tested integrated military capabilities under actual combat conditions, having practised precision strikes and blockading the island that Beijing views as its own. urn:newsml:reuters.com:20230410:nL1N36D03G 2023-04-10T061855Z_1_ZA8_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 08:59:00 PREVIEW-Wall Street bank earnings under pressure after crisis Most Wall Street banks are likely to report lower quarterly earnings and face a dour outlook for the rest of the year, with last month's regional banking crisis and a slowing economy expected to hurt profitability. urn:newsml:reuters.com:20230410:nL4N3682II 2023-04-10T090917Z_1_TS6_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 09:26:00 U.S. stock futures muted after jobs data raises odds of more rate hikes U.S. stock index futures were mixed on Monday, as traders returned from Easter break to growing risks that the Federal Reserve will continue to hike interest rates after Friday's jobs data highlighted a still-strong labor market. urn:newsml:reuters.com:20230410:nL4N36D1KZ 2023-04-10T092959Z_1_BI0_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 09:59:00 The credit crunch the Fed fears may already be taking shape Jeffrey Haley, the CEO of American National Bank and Trust Company, saw the crunch coming at the start of 2023. Rising interest rates and a slowing economy to him meant that loan growth would likely fall by half as the Danville, Virginia-based community bank turned its focus to better-quality, higher-yielding credit, worrying little about volume. urn:newsml:reuters.com:20230410:nL1N3691K0 2023-04-10T100541Z_1_PJ5_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 08:36:00 OpenAI CEO considers opening office as Japan govt eyes adoption OpenAI Chief Executive Sam Altman said on Monday he is considering opening an office and expanding services in Japan after a meeting with Japan's prime minister. urn:newsml:reuters.com:20230410:nL1N36D03Q 2023-04-10T051546Z_1_RJ5_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 09:59:00 ANALYSIS-Texas abortion pill ruling could undermine US drug regulator A federal judge's decision last week to suspend the U.S. Food and Drug Administration's (FDA) approval of abortion pill mifepristone could severely weaken the agency if allowed to stand, health policy and legal experts said. urn:newsml:reuters.com:20230410:nL8N36C098 2023-04-09T225301Z_1_BR0_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 09:56:00 Apple supplier Japan Display teams up with China's HKC as seeks turnaround Japan Display Inc will team up with China's HKC Corporation Ltd to co-operate on next-generation technology for displays, it said on Monday, as the Apple Inc supplier seeks to turn around its business after eight straight years of losses. urn:newsml:reuters.com:20230409:nL1N36D00O 2023-04-10T051011Z_1_NO4_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 08:49:00 Ukraine says Russian forces using 'scorched earth' tactics in battle for Bakhmut Russian forces are pressing attacks in Ukraine's eastern Donetsk region, focusing on two cities and pounding Ukrainian positions with air strikes and artillery barrages, Kyiv said on Monday. urn:newsml:reuters.com:20230410:nL4N36D0J2 2023-04-10T040310Z_1_JO3_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 10:59:00 PREVIEW-In Fox-Dominion defamation trial, jury to weigh executives' role One of the most closely watched U.S. defamation cases in decades is set to begin on Thursday as a Delaware court picks a jury to decide whether Fox News should pay Dominion Voting Systems $1.6 billion for spreading election-rigging falsehoods. urn:newsml:reuters.com:20230410:nL1N3692J4 2023-04-10T110813Z_1_QX5_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 09:59:00 Nashville-area board may send expelled Tennessee lawmaker back to statehouse A Nashville-area county council may return to the statehouse one of two Democratic Tennessee lawmakers who were expelled from the chamber last week over a gun control protest when it meets on Monday to fill the vacant seat. urn:newsml:reuters.com:20230410:nL1N36D01H 2023-04-09T225302Z_1_OH5_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 05:03:00 Saudi maintains crude supply to Asian refiners despite OPEC+ cuts -sources State oil giant Saudi Aramco will supply full crude contract volumes loading in May to several North Asian buyers despite its pledge to cut output by 500,000 barrels per day, several sources with knowledge of the matter said on Monday. urn:newsml:reuters.com:20230410:nL1N36D01K 2023-04-10T091647Z_1_CI0_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-09 18:20:00 Tesla to build Shanghai factory to make Megapack batteries Tesla Inc is opening a factory in Shanghai, capable of producing ten thousand Megapack energy product per year, to supplement output of Megapack factory in California, the company said in a tweet on Sunday. urn:newsml:reuters.com:20230409:nL1N36C03J 2023-04-09T225256Z_1_IH3_RTRLXPP_2_LYNXPACKAGER__JPG
2023-04-10 08:16:00 Virgin Orbit bankruptcy casts shadow over Japan's space dreams The bankruptcy filing by Richard Branson's Virgin Orbit Holdings Inc has dealt a blow to Japan's hopes of building a domestic space industry, with plans for a Kyushu-based spaceport designed to attract tourism on hold for lack of funding. urn:newsml:reuters.com:20230407:nL4N36809P 2023-04-10T092128Z_1_HF2_RTRLXPP_2_LYNXPACKAGER__JPG

None

856 words (4:30 mins)