Last active
December 28, 2015 06:39
-
-
Save ShadowNinja/7459124 to your computer and use it in GitHub Desktop.
Minetest serverlist to YAML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json, yaml, urllib.request, io | |
io.open("yamllist.txt","w").write( | |
yaml.dump( | |
json.loads( | |
urllib.request.urlopen("http://servers.minetest.net/list") | |
.read().decode("utf-8") | |
) | |
) | |
).close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment