fucking damnit man

This commit is contained in:
2018-11-20 20:55:26 +01:00
parent 09a60ccd88
commit 9941a77679
2 changed files with 8143 additions and 7 deletions

8135
yt/commets.txt Normal file

File diff suppressed because one or more lines are too long

View File

@@ -3,11 +3,12 @@ import json
with open('comments-AKLrKMz-avE.json', 'r') as infile:
j = json.load(infile)
with open('commets.txt', 'w') as outfile:
for item in j:
for item in j:
try:
if (item["commentText"]):
temp = item["commentText"]
print(temp.replace("\n", " ").replace("\r", " "))
outfile.write(temp.replace("\n", " ").replace("\r", " ")+"\n")
except KeyError:
print("wss een comment reply")