progs/app1.scala
author Christian Urban <urbanc@in.tum.de>
Tue, 25 Sep 2018 00:27:06 +0100
changeset 559 db5cb071644d
parent 428 a47c4227a0c6
permissions -rw-r--r--
update

def get_page(url: String) : String = {
 Try(Source.fromURL(url)("ISO-8859-1").take(10000).mkString).
    getOrElse { println(s"  Problem with: $url"); ""}
}