From 19435b1d99c94a06459d6fb62e3f2b35085d0d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Wed, 15 Apr 2020 01:08:31 +0200 Subject: Fancy icons, shops, stations Added fancy actions (TODO: include script to install) * added fetcher script for shops * added fetcher script for stations * fixed thumbnails --- scripts/geojson/fetch_shops.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/geojson/fetch_shops.sh (limited to 'scripts/geojson/fetch_shops.sh') 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 "{}]" -- cgit v1.2.3