app1.scala
author Christian Urban <urbanc@in.tum.de>
Thu, 01 Nov 2012 20:00:47 +0000
changeset 56 f28824933a66
parent 2 6e7da958ba8c
permissions -rw-r--r--
added

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