parse()
Parse HTML and extract text matching a CSS selector.
Usage
parse(
html,
selector="body",
)Parameters
html: str-
Raw HTML string.
selector: str = "body"-
CSS selector to match.
Returns
list of str-
Extracted text fragments.
Parse HTML and extract text matching a CSS selector.
Usage
html: strRaw HTML string.
selector: str = "body"CSS selector to match.
list of strExtracted text fragments.