diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-17 23:01:25 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | decedc910e271d2b54298441e271524c065d119e (patch) | |
| tree | 5d705f2a61f0ff2f32788e65c9aca2ea5b3e3de3 /extract.sh | |
| parent | b0b094013a144e6da4c3d3499fd06246085bf853 (diff) | |
| parent | bfc125f7465430a9b9f12e2942c9698f0cb666d8 (diff) | |
Merge branch 'master' of git.sr.ht:~tslil/ctak
Diffstat (limited to 'extract.sh')
| -rwxr-xr-x | extract.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |
