ContentParsers
An object containing functions for parsing extracted content. They can be used together with the DSL extractor
method or by calling map
on a HtmlExtractor
with them.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ContentParsers.type
Members list
Type members
Classlikes
A content parser with extra options for parsing DateTime
s.
A content parser with extra options for parsing DateTime
s.
Attributes
- Graph
- Supertypes
A content parser with extra options for parsing joda-time models.
A content parser with extra options for parsing joda-time models.
Attributes
- Graph
- Supertypes
- trait String => Aclass Objecttrait Matchableclass Any
- Known subtypes
- class AsDateTimeclass AsLocalDate
A content parser with extra options for parsing LocalDate
s.
A content parser with extra options for parsing LocalDate
s.
Attributes
- Graph
- Supertypes
A content parser with extra options for the retrieval of the first match of a regex.
A content parser with extra options for the retrieval of the first match of a regex.
Attributes
- Graph
- Supertypes
- trait String => Stringclass Objecttrait Matchableclass Any
A content parser with extra options for the retrieval of all the matches of a regex.
A content parser with extra options for the retrieval of all the matches of a regex.
Attributes
- Graph
- Supertypes
- trait String => Iterator[String]class Objecttrait Matchableclass Any
Value members
Concrete methods
Parses text content as a DateTime
using one of a list of formats.
Parses text content as a DateTime
using one of a list of formats.
Attributes
- formats
the list of possible date formats
- Returns:
a content parser for parsing text content as a
DateTime
.
Leaves the extracted content as is.
Leaves the extracted content as is.
Attributes
Parses text content as a LocalDate
using one of a list of formats.
Parses text content as a LocalDate
using one of a list of formats.
Attributes
- formats
the list of possible date formats
- Returns:
a content parser for parsing text content as a
DateTime
.
Matches text content against a regex and returns the first match.
Matches text content against a regex and returns the first match.
Attributes
- regex
the regex to match the text content against
- Returns:
a content parser for matching text content against a regex and returning the first match.
Matches text content against a regex and returns the first match.
Matches text content against a regex and returns the first match.
Attributes
- regex
the regex to match the text content against
- Returns:
a content parser for matching text content against a regex and returning the first match.
Matches text content against a regex and returns all the matches.
Matches text content against a regex and returns all the matches.
Attributes
- regex
the regex to match the text content against
- Returns:
a content parser for matching text content against a regex and returning all the matches.
Matches text content against a regex and returns all the matches.
Matches text content against a regex and returns all the matches.
Attributes
- regex
the regex to match the text content against
- Returns:
a content parser for matching text content against a regex and returning all the matches.
Lifts a content parser to work on sequences of elements.
Lifts a content parser to work on sequences of elements.
Attributes
- parser
the content parser to lift
- Returns:
a content parser for parsing a sequence of elements by applying
parser
to each of them.