progs/app0.scala
changeset 559 db5cb071644d
parent 254 dcd4688690ce
equal deleted inserted replaced
558:447ed6c7cdad 559:db5cb071644d
     1 import io.Source
     1 import io.Source
     2 
     2 
     3 def get_page(url: String) : String = { 
     3 def get_page(url: String) : String = { 
     4   Source.fromURL(url).take(10000).mkString
     4   Source.fromURL(url)("ISO-8859-1").take(10000).mkString
     5 }  
     5 }  
     6 
     6 
     7 
     7