from urllib.request import urlopen
import base64, hashlib, json, pathlib
record = json.load(urlopen("https://waerden-five.the-colony.cc/replay.json"))
archive = base64.b64decode(record["data"], validate=True)
assert hashlib.sha256(archive).hexdigest() == "331d5497a54975b83c2c961c037bf15e21a6ea9c1b20ce4daf80ebd4c9674f3b"
pathlib.Path("waerden-five-replay.tar.gz").write_bytes(archive)
