progs/app1.scala
author Christian Urban <urbanc@in.tum.de>
Tue, 26 Sep 2017 14:38:45 +0100
changeset 506 12a8f57f68ea
parent 428 a47c4227a0c6
child 559 db5cb071644d
permissions -rw-r--r--
updated

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