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.online_reports.hierarchy.Definition object.

Module

data.content.news.online_reports.hierarchy

Syntax

get_data(session)

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

Returned value

Online reports hierarchy response

Usage

The following example demonstrates how to get the online reports hierarchy:

response = news.online_reports.hierarchy.Definition().get_data()

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

This example produces the following output:

Response
                                                 description    language
Name                      Report ID                                     
Japan Online Report       OLJPENT         Entertainment News    Japanese
                          OLJPODD               Oddly Enough    Japanese
                          OLJPBUS              Business News    Japanese
                          OLJPTOPNEWS               Top News    Japanese
                          OLJPWORLD               World News    Japanese
                          OLJPTEC            Technology News    Japanese
                          OLJPDOM              Domestic News    Japanese
                          OLJPSPORT              Sports News    Japanese
Brazil Online Report      OLBRDOM              Domestic News  Portuguese
                          OLBRBUS              Business News  Portuguese
                          OLBRTOPNEWS               Top News  Portuguese
                          OLBRENT         Entertainment News  Portuguese
                          OLBRSPORT              Sports News  Portuguese
                          OLBRWORLD               World News  Portuguese
                          OLBRINT            Technology News  Portuguese
India Online Report       OLINBUS              Business News     English
                          OLINTOPNEWS               Top News     English
                          OLINENT         Entertainment News     English
                          OLINSPORT              Sports News     English
                          OLINTECH           Technology News     English
                          OLINWORLD               World News     English
Africa Online Report      OLZABUS              Business News     English
                          OLZATOPNEWS               Top News     English
Latam Online Report       OLLTBUS              Business News     Spanish
                          OLLTTOPNEWS               Top News     Spanish
                          OLLTCOUNTRY          Domestic News     Spanish
                          OLLTSPORT              Sports News     Spanish
                          OLLTENT         Entertainment News     Spanish
                          OLLTINT            Technology News     Spanish
                          OLLTWORLD               World News     Spanish
Asia Online Report        OLASBUS              Business News     English
                          OLASTOPNEWS               Top News     English
                          OLASTEC            Technology News     English
                          OLASWORLD               World News     English
U.S. Online Report        OLUSBUS              Business News     English
                          OLUSTOPNEWS               Top News     English
                          OLUSPOLITIC               Politics     English
                          OLUSWORLD               World News     English
                          OLUSSPORT              Sports News     English
                          OLUSENT         Entertainment News     English
                          OLUSSCIENCE           Science News     English
                          OLUSTECH           Technology News     English
                          OLUSODD               Oddly Enough     English
                          OLUSECON              Economy News     English
                          OLUSMONEY               Money News     English
Canada Online Report      OLCABUS              Business News     English
                          OLCADOM              Domestic News     English
                          OLCAENT         Entertainment News     English
                          OLCASPORT              Sports News     English
                          OLCATECH           Technology News     English
                          OLCATOPNEWS               Top News     English
France Online Report      OLFRTOPNEWS               Top News      French
                          OLFRBUS              Business News      French
                          OLFRSPORT              Sports News      French
                          OLFRTECH           Technology News      French
U.K. Online Report        OLGBBUS              Business News     English
                          OLGBDOM              Domestic News     English
                          OLGBWORLD               World News     English
                          OLGBTOPNEWS               Top News     English
                          OLGBENT         Entertainment News     English
                          OLGBSPORT              Sports News     English
                          OLGBINT              Internet News     English
                          OLGBODD               Oddly Enough     English
Spain Online Report       OLESBUS              Business News     Spanish
                          OLESTOPNEWS               Top News     Spanish
                          OLESSPORT              Sports News     Spanish
                          OLESENT         Entertainment News     Spanish
                          OLESINT            Technology News     Spanish
German Online Report      OLDEBUS              Business News      German
                          OLDEDOM              Domestic News      German
                          OLDEECON              Economy News      German
                          OLDEMKT               Markets News      German
                          OLDETOPNEWS               Top News      German
                          OLDEWORLD               World News      German
Italy Online Report       OLITBUS              Business News     Italian
                          OLITTOPNEWS               Top News     Italian
Russia Online Report      OLRUTOPNEWS               Top News     Russian
                          OLRUBUS              Business News     Russian
Middle East Online Report OLMEBUS              Business News     English
                          OLMETOPNEWS               Top News     English
                          OLMEENT         Entertainment News     English
                          OLMESPORT              Sports News     English
                          OLMETECH           Technology News     English
                          OLMEENV         Environmental News     English
                          OLMEHLT                Health News     English
                          OLMEFILE                 Life News     English
                          OLMEODD               Oddly Enough     English
                          OLMESCI               Science News     English
Arabic Online Report      OLARBUS              Business News      Arabic
                          OLARTOPNEWS               Top News      Arabic
                          OLARWORLD               World News      Arabic
                          OLARSPORT              Sports News      Arabic
                          OLARENT         Entertainment News      Arabic
                          OLARINTTECHENV     Technology News      Arabic

None

67 words (0:21 mins)