object ContentExtractors
An object containing HtmlExtractor instances 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.
- Alphabetic
- By Inheritance
- ContentExtractors
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val allText: HtmlExtractor[Element, String]
An extractor for the text in all matched elements.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def attr(attr: String): HtmlExtractor[Element, String]
An extractor for the value of an attribute of the first matched element.
An extractor for the value of an attribute of the first matched element.
- attr
the attribute name to extract
- returns
an extractor for an attribute of the first matched element.
- def attrs(attr: String): HtmlExtractor[Element, Iterable[String]]
An extractor for a lazy iterable of the value of an attribute of each matched element.
An extractor for a lazy iterable of the value of an attribute of each matched element.
- attr
the attribute name to extract
- returns
an extractor for a lazy iterable of the value of an attribute of each matched element.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val element: HtmlExtractor[Element, Element]
An extractor for the first element matched.
- val elementList: HtmlExtractor[Element, List[Element]]
An extractor for a list of the matched elements.
- val elements: HtmlExtractor[Element, ElementQuery[Element]]
An extractor for an
ElementQuerywith the matched elements. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val formData: HtmlExtractor[Element, Map[String, String]]
An extractor for the form data present in the matched elements.
- val formDataAndAction: HtmlExtractor[Element, (Map[String, String], String)]
An extractor for the form data present in the matched elements, together with the submission URL in the form.
- 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
- 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()
- val pElement: PolyHtmlExtractor { type Out[E] = E }
An extractor for the first element matched.
An extractor for the first element matched. It retains the concrete type of the elements being extracted.
- val pElementList: PolyHtmlExtractor { type Out[E] = List[E] }
An extractor for a list of the matched elements.
An extractor for a list of the matched elements. It retains the concrete type of the elements being extracted.
- val pElements: PolyHtmlExtractor { type Out[E <: net.ruippeixotog.scalascraper.model.Element] = net.ruippeixotog.scalascraper.model.ElementQuery[E] }
An extractor for an
ElementQuerywith the matched elements.An extractor for an
ElementQuerywith the matched elements. It retains the concrete type of the elements being extracted. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val table: HtmlExtractor[Element, Vector[Vector[Element]]]
An extractor for the cells of an HTML table.
An extractor for the cells of an HTML table.
Cells spanning multiple rows or columns are repeated in each of the positions they occupy. As such, well-formed rectangular tables always result in a
VectorofVectors with identical sizes.Rows in
theadelements are always presented first, while rows insidetfootelements are always at the end. - val text: HtmlExtractor[Element, String]
An extractor for the text in the first element matched.
- val texts: HtmlExtractor[Element, Iterable[String]]
An extractor for a lazy iterable of the text in each element matched.
- def toString(): String
- Definition Classes
- 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)