Object

net.ruippeixotog.scalascraper.scraper

ContentParsers

Related Doc: package scraper

Permalink

object ContentParsers

An object containing functions for parsing extracted content. They can be used together with the DSL extractor method or by calling map on a HtmlExtractor with them.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContentParsers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class AsDateTime extends AsJodaTime[DateTime]

    Permalink

    A content parser with extra options for parsing DateTimes.

  2. class AsJodaTime[A] extends (String) ⇒ A

    Permalink

    A content parser with extra options for parsing joda-time models.

  3. class AsLocalDate extends AsJodaTime[LocalDate]

    Permalink

    A content parser with extra options for parsing LocalDates.

  4. class RegexMatch extends (String) ⇒ String

    Permalink

    A content parser with extra options for the retrieval of the first match of a regex.

  5. class RegexMatches extends (String) ⇒ Iterator[String]

    Permalink

    A content parser with extra options for the retrieval of all the matches of a regex.

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 asDateTime(formats: String*): AsDateTime

    Permalink

    Parses text content as a DateTime using one of a list of formats.

    Parses text content as a DateTime using one of a list of formats.

    formats

    the list of possible date formats

    returns

    a content parser for parsing text content as a DateTime.

  5. val asDouble: (String) ⇒ Double

    Permalink

    Parses text content as a Double value.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val asInt: (String) ⇒ Int

    Permalink

    Parses text content as an Int value.

  8. def asIs[C]: (C) ⇒ C

    Permalink

    Leaves the extracted content as is.

  9. def asLocalDate(formats: String*): AsLocalDate

    Permalink

    Parses text content as a LocalDate using one of a list of formats.

    Parses text content as a LocalDate using one of a list of formats.

    formats

    the list of possible date formats

    returns

    a content parser for parsing text content as a DateTime.

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def regexMatch(regex: Regex): RegexMatch

    Permalink

    Matches text content against a regex and returns the first match.

    Matches text content against a regex and returns the first match.

    regex

    the regex to match the text content against

    returns

    a content parser for matching text content against a regex and returning the first match.

  21. def regexMatch(regex: String): RegexMatch

    Permalink

    Matches text content against a regex and returns the first match.

    Matches text content against a regex and returns the first match.

    regex

    the regex to match the text content against

    returns

    a content parser for matching text content against a regex and returning the first match.

  22. def regexMatches(regex: Regex): RegexMatches

    Permalink

    Matches text content against a regex and returns all the matches.

    Matches text content against a regex and returns all the matches.

    regex

    the regex to match the text content against

    returns

    a content parser for matching text content against a regex and returning all the matches.

  23. def regexMatches(regex: String): RegexMatches

    Permalink

    Matches text content against a regex and returns all the matches.

    Matches text content against a regex and returns all the matches.

    regex

    the regex to match the text content against

    returns

    a content parser for matching text content against a regex and returning all the matches.

  24. def seq[C, A](parser: (C) ⇒ A): (TraversableOnce[C]) ⇒ TraversableOnce[A]

    Permalink

    Lifts a content parser to work on sequences of elements.

    Lifts a content parser to work on sequences of elements.

    parser

    the content parser to lift

    returns

    a content parser for parsing a sequence of elements by applying parser to each of them.

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

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

    Permalink
    Definition Classes
    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( ... )

Deprecated Value Members

  1. def asDate(formats: String*): AsDateTime

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) Use either asDateTime or asLocalDate

Inherited from AnyRef

Inherited from Any

Ungrouped