This commit is contained in:
2018-12-16 22:29:09 +01:00
1978 changed files with 3862021 additions and 196 deletions

View File

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