diff options
Diffstat (limited to 'parse.py')
-rw-r--r-- | parse.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/parse.py b/parse.py new file mode 100644 index 0000000..7181d00 --- /dev/null +++ b/parse.py @@ -0,0 +1,11 @@ +import json + +users = json.loads(open("./users.json", "r").read()) + +for cid in users: + clazz = users[cid] + s = "Nutzername,Password" + for user in clazz: + s += f"\n{user['username']},{user['pwd']}" + + open(f"./{cid}.csv", "w").write(s) |