mirror of
https://github.com/bvanroll/odiseectf.git
synced 2025-08-29 20:02:43 +00:00
idk
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
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)
|
||||
|
||||
|
||||
for item in j:
|
||||
try:
|
||||
if (item["commentText"]):
|
||||
temp = item["commentText"]
|
||||
print(temp.replace("\n", " ").replace("\r", " "))
|
||||
except KeyError:
|
||||
print("wss een comment reply")
|
||||
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")
|
||||
|
Reference in New Issue
Block a user