Skip to content

Instantly share code, notes, and snippets.

@ShadowNinja
Last active December 28, 2015 06:39
Show Gist options
  • Save ShadowNinja/7459124 to your computer and use it in GitHub Desktop.
Save ShadowNinja/7459124 to your computer and use it in GitHub Desktop.
Minetest serverlist to YAML
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