This commit is contained in:
2018-11-13 13:15:11 +01:00
parent c5e51424a1
commit 5f5ee87661

13
yt/fixcomments.py Normal file
View File

@@ -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")