diff --git a/yt/fixcomments.py b/yt/fixcomments.py new file mode 100644 index 0000000..f4e77ae --- /dev/null +++ b/yt/fixcomments.py @@ -0,0 +1,13 @@ +import json + + +with open('comments-AKLrKMz-avE.json', 'r') as infile: + j = json.load(infile) + +for item in j: + try: + if (item["commentText"]): + temp = item["commentText"] + print(temp.replace("\n", " ").replace("\r", " ")) + except KeyError: + print("wss een comment reply")