Refinitiv Data Library for Python

get_data

This method sends a request to the Refinitiv Data Platform to retrieve the data specified in the news.story.Definition object.

Module

refinitiv.data.content.news.story

Syntax

get_data(session, on_response)

Parameters

Value Description Data type Optional Default value
session Session object. If it's not passed the default session will be used. Session object Yes None
on_response User-defined callback function to process the final response containing all requested stories. Callable Yes None

Return value

News story response

Usage

The following example demonstrates how to retrieve a particular story by ID:

response = news.story.Definition("urn:newsml:reuters.com:20220608:nNRAkyxc9l:1").get_data()

print(response.data.story.title, '\n')
print(response.data.story.content)
Response

Refinitiv Newscasts - Watch Monday's full episode of Mad Money with Jim Cramer — September 19, 2022

Source: CNBC

Description: "Mad Money" host and former hedge fund manager, Jim Cramer,
provides stock traders with all manner of investing advice.
Short Link:
https://www.cnbc.com/video/2022/09/19/watch-mondays-full-episode-of-mad-money-with-jim-cramer-september-19-2022.html


None