public
Created

  • Download Gist
nopaste.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
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)
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.