Files
C.E.L_Slide_test2/.orchestrator/tmp/read7.py
T

13 lines
394 B
Python

import json
with open(".orchestrator/tmp/issue7_comments.json","r",encoding="utf-8") as f:
data = json.load(f)
print("count=", len(data))
# Print the last 5 comments (likely closing comments)
for c in data[-8:]:
print("---")
print("id=", c.get("id"))
print("created=", c.get("created_at"))
body = c.get("body","")
print("body_len=", len(body))
print(body[:1500])