app1.scala
author Christian Urban <urbanc@in.tum.de>
Sun, 30 Sep 2012 00:21:40 +0100
changeset 15 f5a6270adebc
parent 2 6e7da958ba8c
permissions -rw-r--r--
tuning

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