From 05238dc5aec332970a082b84d174240c4262e95d Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Mon, 27 Apr 2020 17:37:12 +0200 Subject: 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. --- scripts/geojson/fetch_cities.sh | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100755 scripts/geojson/fetch_cities.sh (limited to 'scripts/geojson/fetch_cities.sh') diff --git a/scripts/geojson/fetch_cities.sh b/scripts/geojson/fetch_cities.sh deleted file mode 100755 index 16e81c1..0000000 --- a/scripts/geojson/fetch_cities.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:City&cmlimit=100'` -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