trait HtmlExtractor[-E <: Element, +A] extends (ElementQuery[E]) => A
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
- Alphabetic
- By Inheritance
- HtmlExtractor
- Function1
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract 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.
Concrete 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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def compose[A](g: (A) => ElementQuery[E]): (A) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @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.
- 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.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)