Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View 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)
}
}
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.