LSEG Data Library for Python

News stories response

News stories response. Returns the result of a successful response from the Delivery Platform (formerly Refinitiv Data Platform).

Parameters

Name Description
is_success Boolean that indicates if the request was successful.
data See Data container below.
errors The list of errors, if they occur.
http_response HTTP response object, containing the HTTP response data.
request_count Number of connection attempts, both successful and failed.
request_message HTTP request data, including headers, HTTP method, content, etc.
closure Closure parameters that are returned with the response.
http_status Dictionary, contains http status code and http reason.
http_headers HTTP response headers.
html News story in HTML format.
text News story in plain text format.

Data container

Data container contains raw json response (if applicable), dataframe and news story object.

Name Description
raw Response json data from the platform.
story News story object, includes news headline, title, content, creator, creation date, source, content, etc.
df Response data provided as a Dataframe.
152 words (0:48 mins)