app1.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 24 Oct 2012 04:00:13 +0100
changeset 46 a97a6de47c28
parent 2 6e7da958ba8c
permissions -rw-r--r--
tuned

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