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
- Alphabetic
- By Inheritance
- SimpleExtractor
- Serializable
- Product
- Equals
- HtmlExtractor
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SimpleExtractor(cssQuery: String, contentExtractor: (ElementQuery[E]) => C, contentParser: (C) => A)
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) Use
contentExtractor.mapQuery(cssQuery).map(contentParser)instead
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[A](g: (A) => A): (ElementQuery[E]) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def apply(q: ElementQuery[E]): A
- Definition Classes
- HtmlExtractor → Function1
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compose[A](g: (A) => ElementQuery[E]): (A) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- val contentExtractor: (ElementQuery[E]) => C
- val contentParser: (C) => A
- val cssQuery: String
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def extract(q: ElementQuery[E]): A
Extracts content from an
ElementQuery.Extracts content from an
ElementQuery.- q
the element query from which content is to be extracted
- returns
the extracted content.
- Definition Classes
- SimpleExtractor → HtmlExtractor
- def extractWith[C2, A2](contentExtractor: (ElementQuery[Element]) => C2, contentParser: (C2) => A2): SimpleExtractor[Element, C2, A2]
- def extractWith[C2](contentExtractor: (ElementQuery[Element]) => C): SimpleExtractor[Element, C, A]
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[B](f: (A) => B): HtmlExtractor[E, B]
Maps a function over the extracted content of this extractor.
Maps a function over the extracted content of this extractor.
- B
the output type of the function
- f
the function to map over this extractor
- returns
an
HtmlExtractorreturning the contents extracted by this extractor mapped byf.
- Definition Classes
- HtmlExtractor
- def mapQuery(cssQuery: String): HtmlExtractor[E, A]
Applies a CSS query to
ElementQueryinputs before passing them to this extractor.Applies a CSS query to
ElementQueryinputs before passing them to this extractor.- cssQuery
the CSS query to apply to input
ElementQueryinstances- returns
an
HtmlExtractorreturning the contents extracted by this extractor aftercssQueryis applied to the input queries.
- Definition Classes
- HtmlExtractor
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parseWith[A2](contentExtractor: (C) => A2): SimpleExtractor[E, C, A]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withQuery(cssQuery: String): SimpleExtractor[E, C, A]