progs/app1.scala
author Christian Urban <urbanc@in.tum.de>
Tue, 23 Aug 2016 12:26:13 +0200
changeset 415 4ae59fd3b174
parent 254 dcd4688690ce
child 428 a47c4227a0c6
permissions -rw-r--r--
updated

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