Class/Object

net.ruippeixotog.scalascraper.scraper

SimpleExtractor

Related Docs: object SimpleExtractor | package scraper

Permalink

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, Serializable, Product, Equals, HtmlExtractor[E, A], (ElementQuery[E]) ⇒ A, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleExtractor
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HtmlExtractor
  7. Function1
  8. AnyRef
  9. 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)

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) Use contentExtractor.mapQuery(cssQuery).map(contentParser) instead

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (A) ⇒ A): (ElementQuery[E]) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def apply(q: ElementQuery[E]): A

    Permalink
    Definition Classes
    HtmlExtractor → Function1
    Annotations
    @inline()
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compose[A](g: (A) ⇒ ElementQuery[E]): (A) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. val contentExtractor: (ElementQuery[E]) ⇒ C

    Permalink
  10. val contentParser: (C) ⇒ A

    Permalink
  11. val cssQuery: String

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def extract(q: ElementQuery[E]): A

    Permalink

    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
    SimpleExtractorHtmlExtractor
  14. def extractWith[C2, A2](contentExtractor: (ElementQuery[Element]) ⇒ C2, contentParser: (C2) ⇒ A2): SimpleExtractor[Element, C2, A2]

    Permalink
  15. def extractWith[C2](contentExtractor: (ElementQuery[Element]) ⇒ C): SimpleExtractor[Element, C, A]

    Permalink
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def map[B](f: (A) ⇒ B): HtmlExtractor[E, B]

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def parseWith[A2](contentExtractor: (C) ⇒ A2): SimpleExtractor[E, C, A]

    Permalink
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    Function1 → AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def withQuery(cssQuery: String): SimpleExtractor[E, C, A]

    Permalink

Inherited from Serializable

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