Packages

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

Linear Supertypes
Serializable, Product, Equals, HtmlExtractor[E, A], (ElementQuery[E]) => A, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleExtractor
  2. Serializable
  3. Product
  4. Equals
  5. HtmlExtractor
  6. Function1
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (A) => A): (ElementQuery[E]) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def apply(q: ElementQuery[E]): A
    Definition Classes
    HtmlExtractor → Function1
    Annotations
    @inline()
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def compose[A](g: (A) => ElementQuery[E]): (A) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. val contentExtractor: (ElementQuery[E]) => C
  10. val contentParser: (C) => A
  11. val cssQuery: String
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. 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
  14. def extractWith[C2, A2](contentExtractor: (ElementQuery[Element]) => C2, contentParser: (C2) => A2): SimpleExtractor[Element, C2, A2]
  15. def extractWith[C2](contentExtractor: (ElementQuery[Element]) => C): SimpleExtractor[Element, C, A]
  16. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. 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 HtmlExtractor returning the contents extracted by this extractor mapped by f.

    Definition Classes
    HtmlExtractor
  20. def mapQuery(cssQuery: String): HtmlExtractor[E, A]

    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.

    cssQuery

    the CSS query to apply to input ElementQuery instances

    returns

    an HtmlExtractor returning the contents extracted by this extractor after cssQuery is applied to the input queries.

    Definition Classes
    HtmlExtractor
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def parseWith[A2](contentExtractor: (C) => A2): SimpleExtractor[E, C, A]
  25. def productElementNames: Iterator[String]
    Definition Classes
    Product
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. def withQuery(cssQuery: String): SimpleExtractor[E, C, A]

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HtmlExtractor[E, A]

Inherited from (ElementQuery[E]) => A

Inherited from AnyRef

Inherited from Any

Ungrouped