import json
d=json.load(open('/data/www/files/ggzy_raw.json'))
recs=d["records"]
cand=[v for v in recs.values() if v["cat"] in ("002002001","002002003")]
cand.sort(key=lambda x:(x["cat"],x["date"]),reverse=True)
print("total",len(cand))
for i,v in enumerate(cand):
    print(i,"|",v["cat"],"|",v["date"],"|",v["title"][:80],"|",v["url"])
