An extractor like HtmlExtractor but whose extracted content type depends on the type of the input net.ruippeixotog.scalascraper.model.Element s. A PolyHtmlExtractor
supports application of CSS queries and can be turned into a normal HtmlExtractor
by calling its apply[E]
method, fixing the type of the input Element
as E
.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
Value members
Abstract methods
Returns an HtmlExtractor
obtained from this extractor by specifying the type of the input elements.
Returns an HtmlExtractor
obtained from this extractor by specifying the type of the input elements.
Type parameters
- E
-
the type of the input elements
Attributes
- Returns
-
an
HtmlExtractor
obtained from this extractor by specifying the type of the input elements.
Extracts content from an ElementQuery
.
Extracts content from an ElementQuery
.
Value parameters
- q
-
the element query from which content is to be extracted
Attributes
- Returns
-
the extracted content.
Concrete methods
Applies a CSS query to ElementQuery
inputs before passing them to this extractor.
Applies a CSS query to ElementQuery
inputs before passing them to this extractor.
Value parameters
- cssQuery
-
the CSS query to apply to input
ElementQuery
instances
Attributes
- Returns
-
a
PolyHtmlExtractor
returning the contents extracted by this extractor aftercssQuery
is applied to the input queries.
Maps a function over the extracted content of this extractor.
Maps a function over the extracted content of this extractor.
Type parameters
- B
-
the output type of the function
Value parameters
- f
-
the function to map over this extractor
Attributes
- Returns
-
an
HtmlExtractor
returning the contents extracted by this extractor mapped byf
.
Applies a CSS query to ElementQuery
inputs before passing them to this extractor.
Applies a CSS query to ElementQuery
inputs before passing them to this extractor.
Value parameters
- cssQuery
-
the CSS query to apply to input
ElementQuery
instances
Attributes
- Returns
-
an
HtmlExtractor
returning the contents extracted by this extractor aftercssQuery
is applied to the input queries.
Applies a CSS query to ElementQuery
inputs before passing them to this extractor.
Applies a CSS query to ElementQuery
inputs before passing them to this extractor.
Value parameters
- cssQuery
-
the CSS query to apply to input
ElementQuery
instances
Attributes
- Returns
-
a
PolyHtmlExtractor
returning the contents extracted by this extractor aftercssQuery
is applied to the input queries.
Inherited methods
Attributes
- Inherited from:
- Function1
Attributes
- Inherited from:
- Function1