multi-account-post-schedule.../assets/bash_scripts/get_wiki_osmfrjson.sh

6 lines
330 B
Bash
Raw Permalink Normal View History

2024-09-03 10:32:31 +02:00
for i in {1..6}; do
offset=$(( ($i-1)*500 ))
echo "$i : offset: $offset"
wget --no-check-certificate --no-directories -O "./../documents/recherche_pages_fr_$i.json" \
"https://wiki.openstreetmap.org/w/api.php?action=query&list=search&srsearch=*&srnamespace=202&srlimit=500&srprop=snippet&format=json&sroffset=$offset"
done