diff options
| -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 |
