Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
name := "get_title"
version := "1.0"
scalaVersion := "2.10.0"
libraryDependencies += "com.gravity" % "goose" % "2.1.22"
import com.gravity.goose._;
object GetTitle {
def main(args: Array[String]) {
val goose = new Goose(new Configuration)
val article = goose.extractContent("http://www.parliament.cy/www_START/index.asp")
println(article.title)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.