6 lines
330 B
Bash
6 lines
330 B
Bash
|
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
|