# Script used to put files into jsonl format (original downloaded from web archive link, in readme) | |
import glob | |
for folder in glob.glob("*/"): | |
a = [] | |
for file in glob.glob(f"./{folder}*.json"): | |
contents = open(file, "r").read() | |
a.append(contents) | |
with open(f"{folder[:-1]}.jsonl", "w+") as f: | |
f.write("\n".join(a)) | |
a.clear() | |