aboutsummaryrefslogtreecommitdiff
path: root/extract.sh
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-17 21:24:40 -0500
committertslil <tslil@posteo.de>2021-01-17 21:24:40 -0500
commit2906c621b3ab4d6ee32b7b3b00f0f02937c70759 (patch)
tree3b46878f5dccc2c0f090064978fc1236751d76ac /extract.sh
parentaf3c5a9094d0c27bb49ec618f2a9a7af5f96f575 (diff)
Fixed extract script, wget tells me not to use -O
Diffstat (limited to 'extract.sh')
-rwxr-xr-xextract.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/extract.sh b/extract.sh
index 1fd58ca..72653dc 100755
--- a/extract.sh
+++ b/extract.sh
@@ -23,7 +23,7 @@ extract() {
size="$1"
things="$2"
if [ ! -f "data/$db_file" ]; then
- wget "https://www.playtak.com/games_anon.db" -O "data/$db_file"
+ curl "https://www.playtak.com/games_anon.db" -o "data/$db_file"
fi
echo Extracing games of size "$size"...
sqlite3 "data/$db_file" "$(query $size $things)" | shuf > "data/playtak-$size"
@@ -57,6 +57,10 @@ process() {
echo "Done, available in data/$fn-$size.csv.gz"
}
+if [ ! -d data ]; then
+ mkdir data
+fi
+
make pptdb
for size in 5; do