changeset 7 | 73cf4406b773 |
parent 1 | b606c9439fa6 |
--- a/scraper.scala Wed Sep 26 08:49:47 2012 +0100 +++ b/scraper.scala Thu Sep 27 11:59:41 2012 +0100 @@ -21,14 +21,14 @@ //receiving data val page = fromInputStream(conn.getInputStream).getLines.mkString("\n") -println(page) +//println(page) // regular expression . excludes newlines, // therefore we have to use [\S\s] val regex1 = """<tr align="center">[\S\s]*?</tr>""".r val rows = regex1.findAllIn(page).toList -print(rows) +//print(rows) val regex2 = """<td align="center">([\S\s]*?)</td>""".r