aboutsummaryrefslogtreecommitdiff
path: root/extract.sh
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-17 23:01:25 -0500
committertslil <tslil@posteo.de>2021-01-17 23:01:25 -0500
commitabbac40ae9380628bdabc754b93c9109082a0b9f (patch)
tree5d705f2a61f0ff2f32788e65c9aca2ea5b3e3de3 /extract.sh
parentfd0128c433ab28012661d1bc4ea14a354c6c37a6 (diff)
parent2906c621b3ab4d6ee32b7b3b00f0f02937c70759 (diff)
Merge branch 'master' of git.sr.ht:~tslil/ctak
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