]> git.sthu.org Git - dvrdb.git/commitdiff
dump.sh: Add an explanation
authorStefan Huber <shuber@sthu.org>
Fri, 17 Jan 2014 18:53:02 +0000 (19:53 +0100)
committerStefan Huber <shuber@sthu.org>
Fri, 17 Jan 2014 18:53:02 +0000 (19:53 +0100)
dump.sh

diff --git a/dump.sh b/dump.sh
index ff2e496b26bfafd267ed0b9241fe0c137485f738..2bf9710f71451bea92e1d5bec94af5f32cd15d0f 100755 (executable)
--- a/dump.sh
+++ b/dump.sh
@@ -1,11 +1,20 @@
 #!/bin/sh
 
-FROM=77000
+FROM=54696
 #FROM=190000
 
-UNTIL=130000
+UNTIL=55060
 #UNTIL=200000
 
+cat <<EOF
+1. Open a webbrowser
+2. Visit https://dvr.dsk.gv.at/at.gv.bka.dvr.public/DVRRecherche.aspx and
+   search for "Bundeskanzleramt" in "Auftraggeber". Then press
+   "Datenanwendung". This is important in order to fetch the purposes too!
+3. Loof for a cookie from "dvr.dsk.gv.at" named "ASP.NET_SessionId". Copy its
+   content in this script at the curresponding curl line.
+EOF
+
 for id in `seq ${FROM} ${UNTIL}`; do
     
     echo -n "### ID ${id}"
@@ -13,7 +22,7 @@ for id in `seq ${FROM} ${UNTIL}`; do
     FN="dump/$id.html.gz"
     if ! [ -e "${FN}" ]; then
         echo -n " Fetching..."
-        curl -s -b ASP.NET_SessionId=xtnfwfeplogtuyrna0a5e355 \
+        curl -s -b ASP.NET_SessionId=0ckafib0jrhs3ayhd3m55bv0 \
             "https://dvr.dsk.gv.at/at.gv.bka.dvr.public/AuftraggeberDetail.aspx?Id=${id}" | gzip > "${FN}"
 
         # Do not stress server too much