###############################
Pulling content out of a page
###############################
Scraping usually wants three things from a page: the article body without the navigation and sidebars, any tables as
data, and the machine-readable metadata the page embeds. This tutorial pulls all three from one page in a single parse.
Parse the page once. It carries an article, a table, a ``
``, an OpenGraph tag, and a JSON-LD block:
.. testcode::
import turbohtml
page = turbohtml.parse(
'Q3 report'
''
''
""
"
Q3 sales
"
"
Revenue rose across every region this quarter, led by strong demand in the west.
"
"
Region
Revenue
"
"
West
120
East
90
"
""
)
*********************
Isolate the article
*********************
:meth:`~turbohtml.Node.main_content` scores the page and returns the dominant content element, dropping the ``