LSEG Data Library for Python

Top news response

Top news response. Returns the result of a successful response from the LSEG 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 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 returned with the response.
http_status Dictionary, contains http status code and http reason.
http_headers HTTP response headers.

Data container

Data container contains raw json response (if applicable), dataframe and news headlines objects.

Name Description
raw Response json data from the platform.
headlines List of the top news headlines objects.
df Response data provided as a Dataframe.
126 words (0:40 mins)