app1.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 31 Oct 2012 21:46:27 +0000
changeset 54 485f38b530ab
parent 2 6e7da958ba8c
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)
      ""
    }
  }
}