aboutsummaryrefslogtreecommitdiff
path: root/collect.py
blob: 2a334355df8c21ef0bed794d0dee0c490456b0e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
import json
from pathlib import Path

repo = Path("/home/nea/src/NotEnoughUpdates-REPO")
l = {}
for f in (repo / "items").glob("*.json"):
    with  f.open('r') as fp:
        j = json.load(fp)
    l[j["internalname"]] = j["displayname"]
with Path("./compiled.json").open("w") as fp:
    json.dump(l, fp)