limbusart/utils/safebooru-download.sh

9 lines
282 B
Bash
Raw Normal View History

2023-07-17 13:58:47 +03:00
#!/usr/bin/env bash
touch all.json
for i in $(seq 0 38); do
curl "https://safebooru.org/index.php?page=dapi&s=post&q=index&tags=project_moon&limit=100&pid=$i&json=1" > temp.json
jq -sr '. | add' temp.json all.json > all.json.temp
mv all.json.temp all.json
rm temp.json
done