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