summaryrefslogtreecommitdiff
path: root/scrape.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scrape.sh')
-rw-r--r--scrape.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scrape.sh b/scrape.sh
new file mode 100644
index 0000000..489ecf4
--- /dev/null
+++ b/scrape.sh
@@ -0,0 +1,13 @@
+rm scores.sql
+rm *.pbn
+for RND in {1..3}
+do
+ for SEGMENT in {1..2}
+ do
+ for BOARD in {1..8}
+ do
+ python scrape-scores.py ../ivld_www/ivld_rr1_${RND}b-$((($SEGMENT - 1) * 8 + $BOARD)).html $RND $SEGMENT $BOARD >> scores.sql
+ done
+ python scrape-boards.py ../ivld_www/ivld_rr1_${RND}t1-${SEGMENT}.html > ${RND}-${SEGMENT}.pbn
+ done
+done