!
returns the exit code of the process (0
in your case). If you need the output of the process you should use !!
instead:
val url = "https://morningconsult.com/alert/house-passes-employee-stock-options-bill-aimed-startups/"
import sys.process._
val result = ("wget -qO- " + url !!).toString
println("result : " + result)
solved Return value of process to String