The companion object for HtmlExtractor
, containing methods for creating new extractors.
- Companion:
- class
Value members
Concrete methods
Creates a new HtmlExtractor
from a function.
Creates a new HtmlExtractor
from a function.
- Type parameters:
- A
the type of the extracted content
- E
the type of the elements needed by the
HtmlExtractor
- Value parameters:
- f
the function used to extract content from an
ElementQuery
- Returns:
a new
HtmlExtractor
that extracts content usingf
.
Creates a new HtmlExtractor
that extracts the elements of the input that match a CSS query.
Creates a new HtmlExtractor
that extracts the elements of the input that match a CSS query.
- Type parameters:
- E
the type of the elements needed by the
HtmlExtractor
- Value parameters:
- cssQuery
the CSS query to apply
- Returns:
a new
HtmlExtractor
that extracts the elements of the input that match a CSS query.