import sys,json
d=json.load(sys.stdin)
print("result_count:",d.get("result_count"),"error:",d.get("error"))
for r in d.get("results",[])[:5]:
    name=r.get("author_name")
    hl=(r.get("author_headline") or "")[:75]
    t=(r.get("post_text") or "")[:170].replace("\n"," ")
    print("  - %s | %s | age=%sh rx=%s c=%s vs=%s" % (name,hl,r.get("age_hours"),r.get("reactions"),r.get("comments"),r.get("velocity_score")))
    print("      "+t)
