aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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