scala/app1.scala
changeset 93 4794759139ea
parent 92 e85600529ca5
child 94 9ea667baf097
equal deleted inserted replaced
92:e85600529ca5 93:4794759139ea
     1 def get_page(url: String) : String = { 
       
     2   try {
       
     3     Source.fromURL(url).take(10000).mkString  
       
     4   }
       
     5   catch {
       
     6     case e => {
       
     7       println("  Problem with: " + url)
       
     8       ""
       
     9     }
       
    10   }
       
    11 }
       
    12