mirror of
https://github.com/bvanroll/odiseectf.git
synced 2025-08-28 19:32:42 +00:00
yup
This commit is contained in:
13
yt/fixcomments.py
Normal file
13
yt/fixcomments.py
Normal 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")
|
Reference in New Issue
Block a user