diff options
author | Markus Koch <markus@notsyncing.net> | 2020-04-27 17:37:12 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-04-27 17:38:19 +0200 |
commit | 05238dc5aec332970a082b84d174240c4262e95d (patch) | |
tree | e1afc96079cad81c4a8dd75eb01cec7a1eadd137 /scripts/geojson/fetch_shops.sh | |
parent | c7c4975a571d1974d3807755a064d8489b60ffa4 (diff) | |
download | lifomapserver-05238dc5aec332970a082b84d174240c4262e95d.tar.gz lifomapserver-05238dc5aec332970a082b84d174240c4262e95d.tar.bz2 lifomapserver-05238dc5aec332970a082b84d174240c4262e95d.zip |
Add categories for markers
This commit obsoletes the many fetch scripts and combines them
into a single script, creating a single json, but with category
information.
Diffstat (limited to 'scripts/geojson/fetch_shops.sh')
-rwxr-xr-x | scripts/geojson/fetch_shops.sh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/geojson/fetch_shops.sh b/scripts/geojson/fetch_shops.sh deleted file mode 100755 index 84a9f3f..0000000 --- a/scripts/geojson/fetch_shops.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/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 "{}]" |