Skip to main content

Module parser

Module parser 

Source
Expand description

HTML parser that extracts links, headings, images, forms, and structured data.

HtmlParser::parse produces a ParsedPage with all SEO-relevant data extracted from raw HTML, including accessibility landmarks and social metadata.

Structs§

ExtractedForm
A form detected on the page.
ExtractedImage
An image extracted from the page.
ExtractedInput
An input element inside a form.
ExtractedLink
A link extracted from the page.
Heading
A heading extracted from the page (H1–H6).
HtmlParser
HTML parser that extracts structured data from raw HTML.
ParsedPage
Complete parsed representation of a page.
ScriptInfo
Script tag information.
StreamingHtmlParser
Streaming HTML parser that processes content incrementally.
StructuredData
Structured data extracted from JSON-LD <script> blocks.
StyleInfo
Style/link stylesheet information.

Enums§

ParseError
Errors that can occur during HTML parsing.