LSEG Data Library for Python

get_story

The get_story function allows you to retrieve individual news story items.

Module

lseg.data

Syntax

get_story(story_id, format)

Parameters

Value Description Data type Optional Default value
story_id News story ID. str No -
format Response format. str, Format Yes Format.HTML

Returned value

News content in text or HTML format.

Usage

The following example demonstrates how to retrieve a particular news item, in text format, using its ID:

import lseg.data as ld


# open session
ld.open_session()

response = ld.news.get_story(
    story_id="urn:newsml:reuters.com:20220713:nL1N2YU10J",
    format=ld.news.Format.TEXT
)

print(response)

# close session
ld.close_session()

This example produces the following output:

Adds details, Biden, analyst comments, updates markets
By Lucia Mutikani
WASHINGTON, July 13 (Reuters)
The bigger-than-expected rise in the year-on-year consumer price index reported by the Labor Department on Wednesday also reflected higher prices for 
The inflation data followed stronger-than-expected job growth in June and suggested that the U.S. central bank's aggressive monetary policy stance had made little progress thus far in cooling demand and bringing inflation down to its 2% target
Though a global problem, stubbornly high inflation is a political risk for U.S. President Joe Biden and his Democratic Party heading into congressional elections in November. 
"Despite the Fed's best intentions, the economy looks to be moving into a higher inflation regime," said Christopher Rupkey, chief economist at FWDBONDS in New York. "The Fed is even further behind the curve after today's sizzling report." 
The consumer price index increased 1.3% last month, the biggest monthly gain since September 2005, after advancing 1.0% in May. A 7.5% surge in energy prices accounted for nearly half of the increase in the CPI. Gasoline prices jumped 11.2% after rebounding by 4.1% in May. 
Natural gas prices rose 8.2%, the most since October 2005.  The cost of food consumed at home rose 1.0%, posting the sixth straight monthly increase of at least 1.0%.
In the 12 months through June, the CPI jumped 9.1%. That was the biggest gain since November 1981 and followed an 8.6% rise in May. Economists polled by Reuters had forecast the CPI would rise 1.1% and accelerating 8.8% year-on-year. 
Consumer prices are surging, driven by snarled global supply chains and massive fiscal stimulus from governments early in the COVID-19 pandemic.
The ongoing war in Ukraine, which has caused a spike in global food and fuel prices, has worsened the situation.
President Biden sought to draw some comfort from the retreat in gasoline prices 
"Those savings are providing important breathing room for American families," Biden said in a statement. "And, other commodities like wheat have fallen sharply since this report."
    Annual food prices are rising at their fastest pace since February 1981, with energy prices posting their largest jump in more than 42 years.
    Financial markets overwhelmingly expect the Fed to raise its policy rate by 75 basis points at its July 26-27 meeting. 
The Bank of Canada surprised by hiking its policy rate by 100 basis points on Wednesday, a super-sized increase last seen in 1998. (
The Fed has raised its overnight interest rate by 150 basis points since March. 
U.S. stocks were mixed. The dollar fell against a basket of currencies. U.S. Treasury prices rose.
UNDERLYING INFLATION 
The economy created 372,000 jobs in June, with a broader measure of unemployment hitting a record low. (
There had been hope that a shift in spending from goods to services would help cool inflation. But the very tight labor market is boosting wages, adding to higher prices for services.
Underlying inflation pressures sizzled last month.    Excluding the volatile food and energy components, the CPI gained 0.7% in June after climbing 0.6% in May. The so-called core CPI was lifted by the cost of rent, which shot up 0.8%, the largest monthly increase since April 1986. 
Rents are one of the largest and stickiest inflation categories, which raises the risk of the Fed maintaining its aggressive rate hikes into the second-half of the year.
"There remain miles to go before getting back toward anything resembling price stability," said Sarah House, a senior economist at Wells Fargo in Charlotte, North Carolina.
New vehicle prices maintained their upward trend as did those for used cars and trucks. The cost of motor vehicle maintenance and repairs surged 2.0%, the most since September 1974. Healthcare costs rose 0.7%, with a record increase in the cost of dental services. 
Apparel prices increased 0.8%, despite retailers like Walmart 
The core CPI increased 5.9% in the 12 months through June. That followed a 6.0% rise in the 12 months through May 
High inflation is eroding wage gains, which together with rising borrowing costs could crimp consumer spending, leaving economists to expect a mild recession at the turn of the year. Inflation-adjusted average weekly earning fell 1.0% in June.
 (Reporting by Lucia Mutikani; Editing by Chizu Nomiyama and Paul Simao)
(( 
(c) Copyright Thomson Reuters 2022. Click For Restrictions - https://agency.reuters.com/en/copyright.html
Keywords: USA-ECONOMY/ (WRAPUP 2, PIX, GRAPHICS)

Format

63 words (0:20 mins)