app1.scala
author Christian Urban <urbanc@in.tum.de>
Thu, 27 Sep 2012 12:02:45 +0100
changeset 8 5751a3ee41ce
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)
      ""
    }
  }
}