#!/usr/bin/env python3

from geojson import Feature, Point, FeatureCollection, dumps

wikitext = open('wiki-fork', 'r')
output = open('output.geojson', 'w')

geo_output = []

for line in wikitext:
    split = line.split('"')

    coord = split[0].strip(' ')
    coord = coord.split(',')
    name = split[1].strip()

    point = Point((float(coord[1]), float(coord[0])))
    feature = Feature(geometry=point, properties={"Name": name})

    geo_output.append(feature)


output.write(dumps(FeatureCollection(geo_output)))

wikitext.close()
output.close()



@@ -17,16 +17,38 @@
 ython3%0A%0A
+import urllib.request%0A
 from geo
@@ -109,37 +109,323 @@
 wiki
-text = open('wiki-fork', 'r')
+ = urllib.request.urlopen(%22https://wiki.archlinux.org/index.php/ArchMap/List%22)%0A%0Awiki_source = wiki.read()%0A%0Awikitext_start = wiki_source.find(b'%3Cpre%3E', wiki_source.find(b'%3Cpre%3E') + 1) + 5%0Awikitext_end = wiki_source.find(b'%3C/pre%3E', wiki_source.find(b'%3C/pre%3E') + 1)%0Awikitext = wiki_source%5Bwikitext_start:wikitext_end%5D%0A
 %0Aout
@@ -826,25 +826,8 @@
 ))%0A%0A
-wikitext.close()%0A
 outp
@@ -837,10 +837,8 @@
 close()%0A
-%0A%0A

Switch to parsing the wiki - UNTESTED