Skip to main content

Crate kawat_xpath

Crate kawat_xpath 

Source
Expand description

XPath evaluation on HTML documents.

Provides a wrapper around sxd_html + sxd_xpath for evaluating XPath 1.0 expressions on HTML, with scraper as CSS-selector fallback.

All XPath expressions from trafilatura’s xpaths.py use a narrow subset: contains(), starts-with(), translate(), self::, [1] positional, or/and, and attribute tests. No axes beyond descendant/child.

Structs§

CompiledXpaths
All pre-compiled XPath expression groups used in extraction.
XpathEngine
Evaluates XPath expressions against HTML documents.
XpathExpr
Pre-compiled XPath expression group (thread-safe, reusable).

Enums§

XpathError