Question : scala get file from url as string
Answered by : mysterious-manx-zj6ufz4d16q8
import scala.io.Source
val html = Source.fromURL("http://google.com")
val s = html.mkString
println(s)
Source : https://alvinalexander.com/scala/scala-how-to-download-url-contents-to-string-file/ | Last Update : Sat, 02 Jan 21