#!/usr/bin/env python3
import subprocess
import json
import sys

# Get report content
result = subprocess.run(['python3', '/tmp/cn_stock_report.py'], capture_output=True, text=True, timeout=120)
content = result.stdout

# Create blog post
post = {
    'title': 'A股市场行业板块报告 (2026-04-11)',
    'content': content,
    'tags': ['a股', 'china', 'stock', 'daily-report'],
    'date': '2026-04-11',
    'slug': 'a-stock-sector-report-2026-04-11'
}

with open('/home/node/.openclaw/blog_admin/posts/a-stock-sector-report-2026-04-11.json', 'w', encoding='utf-8') as f:
    json.dump(post, f, ensure_ascii=False, indent=2)

print('Done')
