import scala.io.Source val html = Source.fromURL("http://google.com") val s = html.mkString println(s)