#!/usr/bin/env python3
import json
config_path = '/root/gov_crawler/daily_crawl_config.json'
with open(config_path) as f:
    config = json.load(f)
new_entry = {
    "name": "龙口市-建设项目环评",
    "script": "crawl_longkou.py",
    "source": "direct_server",
    "sync_script": True,
    "schedule": "daily",
    "enabled": True,
    "group": "环评平台组",
    "args": "--pages 5",
}
config["crawlers"].append(new_entry)
with open(config_path, 'w') as f:
    json.dump(config, f, ensure_ascii=False, indent=2)
print(f"Added. Total: {len(config['crawlers'])}")
