app1.scala
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Wed, 28 Nov 2012 07:00:35 +0000
changeset 82 06c3ec0b452e
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)
      ""
    }
  }
}