Example - BBC News live headlines

HTML output retrieves first article from http://news.bbc.co.uk/. Output is refreshing each 15 minutes from cron.

 

Output:

<p><h3><a href="http://www.bbc.com">Trump hits out again at Khan over violence</a></h3></p>
<p>The US president&#x27;s comments come after five separate attacks in London leave three men dead.</p>
<p>Time: </p>
<p>Category: London</p>
<p><h3><a href="http://www.bbc.com">Trump hits out again at Khan over violence</a></h3></p>
<p>The US president&#x27;s comments come after five separate attacks in London leave three men dead.</p>
<p>Time: </p>
<p>Category: London</p>
<p><h3><a href="http://www.bbc.com">Hong Kong protesters in major new march</a></h3></p>
<p>Thousands march in Hong Kong to protest a proposed extradition bill, despite the bill being suspended.</p>
<p>Time: </p>
<p>Category: China</p>
<p><h3><a href="http://www.bbc.com">Hundreds spend night away from flood town</a></h3></p>
<p>People are warned they may need to stay out of their homes in Lincolnshire for up to 48 hours.</p>
<p>Time: </p>
<p>Category: Lincolnshire</p>
<p><h3><a href="http://www.bbc.com">Iran protests to ambassador over UK accusations</a></h3></p>
<p>The UK says Iran is &quot;almost certainly&quot; responsible for attacks on two oil tankers in the Gulf of Oman.</p>
<p>Time: </p>
<p>Category: UK</p>
<p><h3><a href="http://www.bbc.com">Spice Girls tour ends with Geri apology</a></h3></p>
<p>Ginger Spice says she regrets leaving the band at the height of their fame, as their reunion tour ends.</p>
<p>Time: </p>
<p>Category: Entertainment &amp; Arts</p>
<p><h3><a href="http://www.bbc.com">Travel site removes &#x27;offensive&#x27; mural guide</a></h3></p>
<p>Fodor&#x27;s compared &quot;wildly romantic Catholic murals&quot; to &quot;workmanlike efforts&quot; in Protestant areas.</p>
<p>Time: </p>
<p>Category: Northern Ireland</p>
<p><h3><a href="http://www.bbc.com">McVey backs Johnson as next Tory leader</a></h3></p>
<p>Former contender Esther McVey pledges support to Boris Johnson ahead of the first TV debate later.</p>
<p>Time: </p>
<p>Category: UK Politics</p>
<p><h3><a href="http://www.bbc.com">McVey backs Johnson as next Tory leader</a></h3></p>
<p>Former contender Esther McVey pledges support to Boris Johnson ahead of the first TV debate later.</p>
<p>Time: </p>
<p>Category: UK Politics</p>
<p><h3><a href="http://www.bbc.com">Nazanin&#x27;s husband embassy tent protest</a></h3></p>
<p>Richard Ratcliffe has spent his first night on a hunger strike outside the Iranian embassy in London, to try and secure his wife&#x27;s release.</p>
<p>Time: </p>
<p>Category: UK</p>
<p><h3><a href="http://www.bbc.com">India announces retaliatory US tariffs</a></h3></p>
<p>The new duties come days before countries&#x27; leaders are expected to meet at a G20 summit in Japan.</p>
<p>Time: </p>
<p>Category: India</p>
<p><h3><a href="http://www.bbc.com">Priests wear hard hats at Notre-Dame</a></h3></p>
<p>The first Mass has been held at Notre-Dame cathedral since the devastating fire in April.</p>
<p>Time: </p>
<p>Category: Europe</p>
<p><h3><a href="http://www.bbc.com">Illegal eel export dealers exposed</a></h3></p>
<p>International buyers offered high prices for eels caught on the River Severn in Gloucestershire.</p>
<p>Time: </p>
<p>Category: Gloucestershire</p>
<p><h3><a href="http://www.bbc.com">The chapel kept open by only one member</a></h3></p>
<p>Eirian Jones is the last member and single-handedly runs Capel Y Cwm near Abernant in Carmarthenshire.</p>
<p>Time: </p>
<p>Category: Wales</p>
<p><h3><a href="http://www.bbc.com">Fury impresses with Schwarz stoppage</a></h3></p>
<p>Britain&#x27;s Tyson Fury stops previously undefeated heavyweight Tom Schwarz in the second round in Las Vegas.</p>
<p>Time: </p>
<p>Category: BBC Sport</p>
<p><h3><a href="http://www.bbc.com">Trump hits out again at Khan over violence</a></h3></p>
<p>The US president&#x27;s comments come after five separate attacks in London leave three men dead.</p>
<p>Time: </p>
<p>Category: London</p>
<p><h3><a href="http://www.bbc.com">Trump hits out again at Khan over violence</a></h3></p>
<p>The US president&#x27;s comments come after five separate attacks in London leave three men dead.</p>
<p>Time: </p>
<p>Category: London</p>
<p><h3><a href="http://www.bbc.com">Hong Kong protesters in major new march</a></h3></p>
<p>Thousands march in Hong Kong to protest a proposed extradition bill, despite the bill being suspended.</p>
<p>Time: </p>
<p>Category: China</p>
<p><h3><a href="http://www.bbc.com">Hundreds spend night away from flood town</a></h3></p>
<p>People are warned they may need to stay out of their homes in Lincolnshire for up to 48 hours.</p>
<p>Time: </p>
<p>Category: Lincolnshire</p>
<p><h3><a href="http://www.bbc.com">Iran protests to ambassador over UK accusations</a></h3></p>
<p>The UK says Iran is &quot;almost certainly&quot; responsible for attacks on two oil tankers in the Gulf of Oman.</p>
<p>Time: </p>
<p>Category: UK</p>
<p><h3><a href="http://www.bbc.com">Spice Girls tour ends with Geri apology</a></h3></p>
<p>Ginger Spice says she regrets leaving the band at the height of their fame, as their reunion tour ends.</p>
<p>Time: </p>
<p>Category: Entertainment &amp; Arts</p>
<p><h3><a href="http://www.bbc.com">Travel site removes &#x27;offensive&#x27; mural guide</a></h3></p>
<p>Fodor&#x27;s compared &quot;wildly romantic Catholic murals&quot; to &quot;workmanlike efforts&quot; in Protestant areas.</p>
<p>Time: </p>
<p>Category: Northern Ireland</p>
<p><h3><a href="http://www.bbc.com">McVey backs Johnson as next Tory leader</a></h3></p>
<p>Former contender Esther McVey pledges support to Boris Johnson ahead of the first TV debate later.</p>
<p>Time: </p>
<p>Category: UK Politics</p>
<p><h3><a href="http://www.bbc.com">McVey backs Johnson as next Tory leader</a></h3></p>
<p>Former contender Esther McVey pledges support to Boris Johnson ahead of the first TV debate later.</p>
<p>Time: </p>
<p>Category: UK Politics</p>
<p><h3><a href="http://www.bbc.com">Nazanin&#x27;s husband embassy tent protest</a></h3></p>
<p>Richard Ratcliffe has spent his first night on a hunger strike outside the Iranian embassy in London, to try and secure his wife&#x27;s release.</p>
<p>Time: </p>
<p>Category: UK</p>
<p><h3><a href="http://www.bbc.com">India announces retaliatory US tariffs</a></h3></p>
<p>The new duties come days before countries&#x27; leaders are expected to meet at a G20 summit in Japan.</p>
<p>Time: </p>
<p>Category: India</p>
<p><h3><a href="http://www.bbc.com">Priests wear hard hats at Notre-Dame</a></h3></p>
<p>The first Mass has been held at Notre-Dame cathedral since the devastating fire in April.</p>
<p>Time: </p>
<p>Category: Europe</p>
<p><h3><a href="http://www.bbc.com">Illegal eel export dealers exposed</a></h3></p>
<p>International buyers offered high prices for eels caught on the River Severn in Gloucestershire.</p>
<p>Time: </p>
<p>Category: Gloucestershire</p>
<p><h3><a href="http://www.bbc.com">The chapel kept open by only one member</a></h3></p>
<p>Eirian Jones is the last member and single-handedly runs Capel Y Cwm near Abernant in Carmarthenshire.</p>
<p>Time: </p>
<p>Category: Wales</p>
<p><h3><a href="http://www.bbc.com">Fury impresses with Schwarz stoppage</a></h3></p>
<p>Britain&#x27;s Tyson Fury stops previously undefeated heavyweight Tom Schwarz in the second round in Las Vegas.</p>
<p>Time: </p>
<p>Category: BBC Sport</p>
<p><h3><a href="http://www.bbc.com">Trump hits out again at Khan over violence</a></h3></p>
<p>The US president&#x27;s comments come after five separate attacks in London leave three men dead.</p>
<p>Time: </p>
<p>Category: London</p>
<p><h3><a href="http://www.bbc.com">Trump hits out again at Khan over violence</a></h3></p>
<p>The US president&#x27;s comments come after five separate attacks in London leave three men dead.</p>
<p>Time: </p>
<p>Category: London</p>
<p><h3><a href="http://www.bbc.com">Hong Kong protesters in major new march</a></h3></p>
<p>Thousands march in Hong Kong to protest a proposed extradition bill, despite the bill being suspended.</p>
<p>Time: </p>
<p>Category: China</p>
<p><h3><a href="http://www.bbc.com">Hundreds spend night away from flood town</a></h3></p>
<p>People are warned they may need to stay out of their homes in Lincolnshire for up to 48 hours.</p>
<p>Time: </p>
<p>Category: Lincolnshire</p>
<p><h3><a href="http://www.bbc.com">Iran protests to ambassador over UK accusations</a></h3></p>
<p>The UK says Iran is &quot;almost certainly&quot; responsible for attacks on two oil tankers in the Gulf of Oman.</p>
<p>Time: </p>
<p>Category: UK</p>
<p><h3><a href="http://www.bbc.com">Spice Girls tour ends with Geri apology</a></h3></p>
<p>Ginger Spice says she regrets leaving the band at the height of their fame, as their reunion tour ends.</p>
<p>Time: </p>
<p>Category: Entertainment &amp; Arts</p>
<p><h3><a href="http://www.bbc.com">Travel site removes &#x27;offensive&#x27; mural guide</a></h3></p>
<p>Fodor&#x27;s compared &quot;wildly romantic Catholic murals&quot; to &quot;workmanlike efforts&quot; in Protestant areas.</p>
<p>Time: </p>
<p>Category: Northern Ireland</p>
<p><h3><a href="http://www.bbc.com">McVey backs Johnson as next Tory leader</a></h3></p>
<p>Former contender Esther McVey pledges support to Boris Johnson ahead of the first TV debate later.</p>
<p>Time: </p>
<p>Category: UK Politics</p>
<p><h3><a href="http://www.bbc.com">McVey backs Johnson as next Tory leader</a></h3></p>
<p>Former contender Esther McVey pledges support to Boris Johnson ahead of the first TV debate later.</p>
<p>Time: </p>
<p>Category: UK Politics</p>
<p><h3><a href="http://www.bbc.com">Nazanin&#x27;s husband embassy tent protest</a></h3></p>
<p>Richard Ratcliffe has spent his first night on a hunger strike outside the Iranian embassy in London, to try and secure his wife&#x27;s release.</p>
<p>Time: </p>
<p>Category: UK</p>
<p><h3><a href="http://www.bbc.com">India announces retaliatory US tariffs</a></h3></p>
<p>The new duties come days before countries&#x27; leaders are expected to meet at a G20 summit in Japan.</p>
<p>Time: </p>
<p>Category: India</p>
<p><h3><a href="http://www.bbc.com">Priests wear hard hats at Notre-Dame</a></h3></p>
<p>The first Mass has been held at Notre-Dame cathedral since the devastating fire in April.</p>
<p>Time: </p>
<p>Category: Europe</p>
<p><h3><a href="http://www.bbc.com">Illegal eel export dealers exposed</a></h3></p>
<p>International buyers offered high prices for eels caught on the River Severn in Gloucestershire.</p>
<p>Time: </p>
<p>Category: Gloucestershire</p>
<p><h3><a href="http://www.bbc.com">The chapel kept open by only one member</a></h3></p>
<p>Eirian Jones is the last member and single-handedly runs Capel Y Cwm near Abernant in Carmarthenshire.</p>
<p>Time: </p>
<p>Category: Wales</p>
<p><h3><a href="http://www.bbc.com">Fury impresses with Schwarz stoppage</a></h3></p>
<p>Britain&#x27;s Tyson Fury stops previously undefeated heavyweight Tom Schwarz in the second round in Las Vegas.</p>
<p>Time: </p>
<p>Category: BBC Sport</p>
<p><h3><a href="http://www.bbc.com">Trump hits out again at Khan over violence</a></h3></p>
<p>The US president&#x27;s comments come after five separate attacks in London leave three men dead.</p>
<p>Time: </p>
<p>Category: London</p>
<p><h3><a href="http://www.bbc.com">Trump hits out again at Khan over violence</a></h3></p>
<p>The US president&#x27;s comments come after five separate attacks in London leave three men dead.</p>
<p>Time: </p>
<p>Category: London</p>
<p><h3><a href="http://www.bbc.com">Hong Kong protesters in major new march</a></h3></p>
<p>Thousands march in Hong Kong to protest a proposed extradition bill, despite the bill being suspended.</p>
<p>Time: </p>
<p>Category: China</p>
<p><h3><a href="http://www.bbc.com">Hundreds spend night away from flood town</a></h3></p>
<p>People are warned they may need to stay out of their homes in Lincolnshire for up to 48 hours.</p>
<p>Time: </p>
<p>Category: Lincolnshire</p>
<p><h3><a href="http://www.bbc.com">Iran protests to ambassador over UK accusations</a></h3></p>
<p>The UK says Iran is &quot;almost certainly&quot; responsible for attacks on two oil tankers in the Gulf of Oman.</p>
<p>Time: </p>
<p>Category: UK</p>
<p><h3><a href="http://www.bbc.com">Spice Girls tour ends with Geri apology</a></h3></p>
<p>Ginger Spice says she regrets leaving the band at the height of their fame, as their reunion tour ends.</p>
<p>Time: </p>
<p>Category: Entertainment &amp; Arts</p>
<p><h3><a href="http://www.bbc.com">Travel site removes &#x27;offensive&#x27; mural guide</a></h3></p>
<p>Fodor&#x27;s compared &quot;wildly romantic Catholic murals&quot; to &quot;workmanlike efforts&quot; in Protestant areas.</p>
<p>Time: </p>
<p>Category: Northern Ireland</p>
<p><h3><a href="http://www.bbc.com">McVey backs Johnson as next Tory leader</a></h3></p>
<p>Former contender Esther McVey pledges support to Boris Johnson ahead of the first TV debate later.</p>
<p>Time: </p>
<p>Category: UK Politics</p>
<p><h3><a href="http://www.bbc.com">McVey backs Johnson as next Tory leader</a></h3></p>
<p>Former contender Esther McVey pledges support to Boris Johnson ahead of the first TV debate later.</p>
<p>Time: </p>
<p>Category: UK Politics</p>
<p><h3><a href="http://www.bbc.com">Nazanin&#x27;s husband embassy tent protest</a></h3></p>
<p>Richard Ratcliffe has spent his first night on a hunger strike outside the Iranian embassy in London, to try and secure his wife&#x27;s release.</p>
<p>Time: </p>
<p>Category: UK</p>
<p><h3><a href="http://www.bbc.com">India announces retaliatory US tariffs</a></h3></p>
<p>The new duties come days before countries&#x27; leaders are expected to meet at a G20 summit in Japan.</p>
<p>Time: </p>
<p>Category: India</p>
<p><h3><a href="http://www.bbc.com">Priests wear hard hats at Notre-Dame</a></h3></p>
<p>The first Mass has been held at Notre-Dame cathedral since the devastating fire in April.</p>
<p>Time: </p>
<p>Category: Europe</p>
<p><h3><a href="http://www.bbc.com">Illegal eel export dealers exposed</a></h3></p>
<p>International buyers offered high prices for eels caught on the River Severn in Gloucestershire.</p>
<p>Time: </p>
<p>Category: Gloucestershire</p>
<p><h3><a href="http://www.bbc.com">The chapel kept open by only one member</a></h3></p>
<p>Eirian Jones is the last member and single-handedly runs Capel Y Cwm near Abernant in Carmarthenshire.</p>
<p>Time: </p>
<p>Category: Wales</p>
<p><h3><a href="http://www.bbc.com">Fury impresses with Schwarz stoppage</a></h3></p>
<p>Britain&#x27;s Tyson Fury stops previously undefeated heavyweight Tom Schwarz in the second round in Las Vegas.</p>
<p>Time: </p>
<p>Category: BBC Sport</p>
<p><h3><a href="http://www.bbc.com">Trump hits out again at Khan over violence</a></h3></p>
<p>The US president&#x27;s comments come after five separate attacks in London leave three men dead.</p>
<p>Time: </p>
<p>Category: London</p>
<p><h3><a href="http://www.bbc.com">Trump hits out again at Khan over violence</a></h3></p>
<p>The US president&#x27;s comments come after five separate attacks in London leave three men dead.</p>
<p>Time: </p>
<p>Category: London</p>
<p><h3><a href="http://www.bbc.com">Hong Kong protesters in major new march</a></h3></p>
<p>Thousands march in Hong Kong to protest a proposed extradition bill, despite the bill being suspended.</p>
<p>Time: </p>
<p>Category: China</p>
<p><h3><a href="http://www.bbc.com">Hundreds spend night away from flood town</a></h3></p>
<p>People are warned they may need to stay out of their homes in Lincolnshire for up to 48 hours.</p>
<p>Time: </p>
<p>Category: Lincolnshire</p>
<p><h3><a href="http://www.bbc.com">Iran protests to ambassador over UK accusations</a></h3></p>
<p>The UK says Iran is &quot;almost certainly&quot; responsible for attacks on two oil tankers in the Gulf of Oman.</p>
<p>Time: </p>
<p>Category: UK</p>
<p><h3><a href="http://www.bbc.com">Spice Girls tour ends with Geri apology</a></h3></p>
<p>Ginger Spice says she regrets leaving the band at the height of their fame, as their reunion tour ends.</p>
<p>Time: </p>
<p>Category: Entertainment &amp; Arts</p>
<p><h3><a href="http://www.bbc.com">Travel site removes &#x27;offensive&#x27; mural guide</a></h3></p>
<p>Fodor&#x27;s compared &quot;wildly romantic Catholic murals&quot; to &quot;workmanlike efforts&quot; in Protestant areas.</p>
<p>Time: </p>
<p>Category: Northern Ireland</p>
<p><h3><a href="http://www.bbc.com">McVey backs Johnson as next Tory leader</a></h3></p>
<p>Former contender Esther McVey pledges support to Boris Johnson ahead of the first TV debate later.</p>
<p>Time: </p>
<p>Category: UK Politics</p>
<p><h3><a href="http://www.bbc.com">McVey backs Johnson as next Tory leader</a></h3></p>
<p>Former contender Esther McVey pledges support to Boris Johnson ahead of the first TV debate later.</p>
<p>Time: </p>
<p>Category: UK Politics</p>
<p><h3><a href="http://www.bbc.com">Nazanin&#x27;s husband embassy tent protest</a></h3></p>
<p>Richard Ratcliffe has spent his first night on a hunger strike outside the Iranian embassy in London, to try and secure his wife&#x27;s release.</p>
<p>Time: </p>
<p>Category: UK</p>
<p><h3><a href="http://www.bbc.com">India announces retaliatory US tariffs</a></h3></p>
<p>The new duties come days before countries&#x27; leaders are expected to meet at a G20 summit in Japan.</p>
<p>Time: </p>
<p>Category: India</p>
<p><h3><a href="http://www.bbc.com">Priests wear hard hats at Notre-Dame</a></h3></p>
<p>The first Mass has been held at Notre-Dame cathedral since the devastating fire in April.</p>
<p>Time: </p>
<p>Category: Europe</p>
<p><h3><a href="http://www.bbc.com">Illegal eel export dealers exposed</a></h3></p>
<p>International buyers offered high prices for eels caught on the River Severn in Gloucestershire.</p>
<p>Time: </p>
<p>Category: Gloucestershire</p>
<p><h3><a href="http://www.bbc.com">The chapel kept open by only one member</a></h3></p>
<p>Eirian Jones is the last member and single-handedly runs Capel Y Cwm near Abernant in Carmarthenshire.</p>
<p>Time: </p>
<p>Category: Wales</p>
<p><h3><a href="http://www.bbc.com">Fury impresses with Schwarz stoppage</a></h3></p>
<p>Britain&#x27;s Tyson Fury stops previously undefeated heavyweight Tom Schwarz in the second round in Las Vegas.</p>
<p>Time: </p>
<p>Category: BBC Sport</p>
<p><h3><a href="http://www.bbc.com">The man whose kindness went viral</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">Handmade wheelchair for disabled duck</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">The death of a British skateboarding hero</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">The women who are killing it in taxidermy</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">Finder &#x27;had no idea coin was worth £10k&#x27;</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">Paper review: Tory contenders eye roles in &#x27;Boris cabinet&#x27;</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">BBC News Channel</a></h3></p>
<p>The latest breaking and developing stories</p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">BBC Radio 5 Live</a></h3></p>
<p>Original news and exclusive interviews</p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">Nandem, the 80-year-old &#x27;Grime Gran&#x27;</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">Taekwondo star unbowed by her disability</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">Nifty knitters knit their high street</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">Fancy a swimsuit made from ocean waste?</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">Babe Ruth jersey fetches $5.64m at auction</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">Ebola crosses a porous border</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">The day Trump ran for president, and what people predicted</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">Inside the homeless single mums&#x27; hostel</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">&#x27;My tattoos helped me get ahead at work&#x27;</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">EastEnders star: How award saved my dad</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">&#x27;Abuser told me aliens would kill my family&#x27;</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>
<p><h3><a href="http://www.bbc.com">Leaked exam: &#x27;I cried in the car on the way home&#x27;</a></h3></p>
<p></p>
<p>Time: </p>
<p>Category: </p>

Source code of script:

# File: bbc_main.w
# Name: BBC News live headlines
# Description: HTML output retrieves first article from www.bbcnews.com
# Input: URL [http://news.bbc.co.uk]
# Output format: HTML file
# Output fields: Source URL, Link, Title, Description

#<Logger File>
#	Global
#	FileName bbc_log.log
#	Level debug
#</Logger>

<Section>
    Name bbc_main
	
    Define $output_file bbc_output.html

	# define variable $url and assign it value
    Define $url http://www.bbc.com/news
    
	
	
    # clean output file
    <Action Print>
        FileName {$output_file}
		FileMode Write  
    </Action>
    	
	
    
    # load content
    <Action ContentURL>
        URL {$url}
        RemoveNewLine
        TagsToStrip br,nobr,b
    </Action>

	# the script will iterate through all headlines
	<Section While>
		# search for headlines only in the top part of the website
		EndAt <div class="container">
		
		# match the beginning of headline
		<Pattern>
			RegExp <div class="gs-c-promo-body
		</Pattern>
	
		<Section>
			# stop searching for date before the beginning of next headline
			EndAt <div class="gel-layout__item
	
			# match url
			<Pattern>
				RegExp <a class="gs-c-promo-heading{:re([^"]*)}" href="{$url:re([^"]*)}">
				Trim
				Compact
			</Pattern>
	
			# match title
			<Pattern>
				RegExp <h3 class="gs-c-promo-heading__title{:re([^"]*)}">{$title}</h3></a>
				Trim
				Compact
			</Pattern>
	
			# match summary
			<Pattern>
				Optional
				RegExp <p class="gs-c-promo-summary{:re([^"]*)}">{$summary}</p>
				Trim
				Compact
			</Pattern>
	
			# match time
			<Pattern>
				Optional
				RegExp <time class="gs-o-bullet__text date qa-status-date" datetime="{$time:re([^"]*)}"
				Trim
				Compact
			</Pattern>
	
			# match category
			<Pattern>
				Optional
				RegExp <span aria-hidden="true">{$category}</span>
				Trim
				Compact
			</Pattern>
	
			# and print parsed data
			<Action Print>
				FileName {$output_file}
				Text <p><h3><a href="http://www.bbc.com{$link}">{$title}</a></h3></p>\n<p>{$summary}</p>\n<p>Time: {$time}</p>\n<p>Category: {$category}</p>\n
			</Action>
        </Section>
    </Section>
</Section>

Main bbc_main