Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 1007 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 1007 Bytes

Config module for Scala Scraper

A Scala Scraper module allowing extractors and validators to be loaded from config files.

NOTE: this module is in a beta stage. Please expect API changes in future releases.

Quick Start

To use this module in an existing SBT project with Scala 2.11 or newer and scala-scraper, add the following dependency to your build.sbt:

libraryDependencies += "net.ruippeixotog" %% "scala-scraper-config" % "3.1.1"

The extra DSL methods offered by this module can be imported using:

import net.ruippeixotog.scalascraper.config.dsl.DSL._

Matchers and validators can be loaded from a Typesafe config using the provided methods matcherAt, validatorAt and validatorsAt. Take a look at the application.conf config used in the unit tests to see how they can be used.