#!/usr/bin/env python3
import sys
sys.path.insert(0, "/root")
sys.path.insert(0, "/root/gov_crawler")
import crawl_taiqian_tzgg as m

urls = [
    "http://www.taiqian.gov.cn/content/2026/1290326.html",
    "http://www.taiqian.gov.cn/content/2026/1287196.html",
    "http://www.taiqian.gov.cn/content/2026/1288558.html",
]
for url in urls:
    t, d, a, c = m.fetch_detail(url)
    print(f"{url.split('/')[-1]} len={len(c)} show={len(c) > 50}")
    if len(c) > 50:
        print(f"  {c[:80]}")
