progs/scraper.scala
changeset 257 70c307641d05
parent 250 b79e704acb72
child 258 1e4da6d2490c
--- a/progs/scraper.scala	Mon Sep 22 02:01:41 2014 +0100
+++ b/progs/scraper.scala	Mon Sep 22 13:42:14 2014 +0100
@@ -16,6 +16,7 @@
 
 // connecting to url
 val conn = url.openConnection
+conn.setRequestProperty("User-Agent", "")
 conn.setDoOutput(true)
 conn.connect
 
@@ -24,6 +25,7 @@
 
 //possible date ranges
 wr.write("Fdate=2012-8-24&Tdate=2012-09-25")
+//wr.write("Fdate=2011-8-24&Tdate=2011-09-25")
 //wr.write("Fdate=2001-9-18&Tdate=2012-09-25")
 wr.flush
 wr.close