diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-04-15 01:08:31 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-04-15 01:08:31 +0200 |
commit | 19435b1d99c94a06459d6fb62e3f2b35085d0d25 (patch) | |
tree | a0553e3d2e793d2a31e35823356aae97faade4d6 /scripts/geojson/fetch_shops.sh | |
parent | 3d006119c069809af189abc589e5afc4edcd9500 (diff) | |
download | lifomapserver-19435b1d99c94a06459d6fb62e3f2b35085d0d25.tar.gz lifomapserver-19435b1d99c94a06459d6fb62e3f2b35085d0d25.tar.bz2 lifomapserver-19435b1d99c94a06459d6fb62e3f2b35085d0d25.zip |
Fancy icons, shops, stations
Added fancy actions (TODO: include script to install)
* added fetcher script for shops
* added fetcher script for stations
* fixed thumbnails
Diffstat (limited to 'scripts/geojson/fetch_shops.sh')
-rwxr-xr-x | scripts/geojson/fetch_shops.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/geojson/fetch_shops.sh b/scripts/geojson/fetch_shops.sh new file mode 100755 index 0000000..84a9f3f --- /dev/null +++ b/scripts/geojson/fetch_shops.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +json=`curl 'https://wiki.linux-forks.de/mediawiki/api.php?action=query&format=json&list=categorymembers&cmtitle=Category:Shops&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 "{}]" |