app1.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 26 Sep 2012 02:50:44 +0100
changeset 2 6e7da958ba8c
parent 1 b606c9439fa6
permissions -rw-r--r--
updated

def get_page(url: String) : String = { 
  try {
    Source.fromURL(url).take(10000).mkString  
  }
  catch {
    case e => {
      println("  Problem with: " + url)
      ""
    }
  }
}