LSEG Data Library for Python

news.top_news.Definition object

Defines the top news headlines package to retrieve.

Module

data.content.news.top_news

Syntax

news.top_news.Definition(top_news_id, revision_id)

Parameters

Value Description Data type Optional Default value
top_news_id Top news package ID. str No -
revision_id The top news package version int Yes None
extended_params Specifies the parameters that will be merged with the request. dict Yes None

Returned value

news.top_news.Definition object

Usage

The following example demonstrates how to define the last revision of a particular top news headlines package that you want to retrieve.

from lseg.data.content import news


definition = news.top_news.Definition(top_news_id="urn:newsml:reuters.com:20020923:SPDOC_119827232002")

None

73 words (0:23 mins)