lifo-dijkstraserv/scripts/geojson/fetch_stations.sh
Gabriel Pérez-Cerezo 19435b1d99 Fancy icons, shops, stations
Added fancy actions (TODO: include script to install)

* added fetcher script for shops
* added fetcher script for stations
* fixed thumbnails
2020-04-15 01:08:31 +02:00

11 lines
356 B
Bash
Executable File

#!/bin/bash
json=`curl 'https://wiki.linux-forks.de/mediawiki/api.php?action=query&format=json&list=categorymembers&cmtitle=Category:Stations&cmlimit=1000' 2>/dev/null`
cities=`echo "$json" | json_reformat | sed -n 's/.*"title":\s*"\([^"]*\).*/\1/p' | tr ' ' '_' | tr '\n' ' '`
echo "["
for city in $cities; do
./fetch_single.sh "$city"
done
echo "{}]"