package scraper
- Alphabetic
- Public
- All
Type Members
- trait HtmlExtractor[-E <: Element, +A] extends (ElementQuery[E]) => A
An object able to extract content from net.ruippeixotog.scalascraper.model.ElementQuery instances.
An object able to extract content from net.ruippeixotog.scalascraper.model.ElementQuery instances.
- E
the type of the elements needed by this
HtmlExtractor- A
the type of the extracted content
- trait HtmlExtractorInstances extends AnyRef
- trait HtmlValidator[-E <: Element, +R] extends AnyRef
- trait PolyHtmlExtractor extends AnyRef
An extractor like HtmlExtractor but whose extracted content type depends on the type of the input net.ruippeixotog.scalascraper.model.Elements.
An extractor like HtmlExtractor but whose extracted content type depends on the type of the input net.ruippeixotog.scalascraper.model.Elements. A
PolyHtmlExtractorsupports application of CSS queries and can be turned into a normalHtmlExtractorby calling itsapply[E]method, fixing the type of the inputElementasE.
Deprecated Type Members
- case class SimpleExtractor[-E <: Element, C, +A](cssQuery: String, contentExtractor: (ElementQuery[E]) => C, contentParser: (C) => A) extends HtmlExtractor[E, A] with Product with Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) Use HtmlExtractor constructor methods followed by map and mapQuery
- case class SimpleValidator[-E <: Element, A, +R](htmlExtractor: HtmlExtractor[E, A], matcher: (A) => Boolean, result: Option[R] = None) extends HtmlValidator[E, R] with Product with Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) SimpleValidator is deprecated. Use HtmlValidator.apply methods instead
Value Members
- object ContentExtractors
An object containing
HtmlExtractorinstances for extracting primitive data such as text, elements or attributes, as well as more complex information such as form data.An object containing
HtmlExtractorinstances for extracting primitive data such as text, elements or attributes, as well as more complex information such as form data. Because they do perform little to no navigation through the document, they are typically preceded by a CSS query defining the location in the HTML document of the data to be retrieved. - object ContentParsers
An object containing functions for parsing extracted content.
An object containing functions for parsing extracted content. They can be used together with the DSL
extractormethod or by callingmapon aHtmlExtractorwith them. - object HtmlExtractor extends HtmlExtractorInstances
The companion object for
HtmlExtractor, containing methods for creating new extractors. - object HtmlValidator
- object PolyHtmlExtractor
- object SimpleExtractor extends Serializable
Deprecated Value Members
- object SimpleValidator extends Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) SimpleValidator is deprecated. Use HtmlValidator.apply methods instead