Files
nanocode/it_automation_enhanced/config/config_test.json
T
Ubuntu 32b43f85bd a
2026-07-03 16:58:28 +08:00

71 lines
2.0 KiB
JSON

{
"system": {
"name": "IT资讯自动化增强版",
"version": "1.0.0",
"description": "基于新仓库代码的增强版资讯自动化系统"
},
"paths": {
"work_dir": "/home/ubuntu/nanocode/it_automation_enhanced",
"database_path": "/home/ubuntu/nanocode/it_automation_enhanced/data/test_articles.db",
"log_dir": "/home/ubuntu/nanocode/it_automation_enhanced/logs",
"output_dir": "/home/ubuntu/nanocode/it_automation_enhanced/output",
"xhs_integration_dir": "/home/ubuntu/nanocode/it_automation_enhanced/xhs_integration"
},
"crawler": {
"min_word_count": 500,
"max_days_old": 7,
"request_delay": 3,
"timeout": 30,
"max_retries": 3,
"user_agents": [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36"
]
},
"websites": [
{
"name": "InfoQ",
"url": "https://www.infoq.com",
"category": "tech",
"enabled": true,
"priority": 1
},
{
"name": "Wired",
"url": "https://www.wired.com",
"category": "tech",
"enabled": true,
"priority": 2
},
{
"name": "TechCrunch",
"url": "https://techcrunch.com",
"category": "tech",
"enabled": true,
"priority": 3
}
],
"processing": {
"enable_translation": true,
"enable_humanizer": true,
"enable_xhs_conversion": true,
"max_content_length": 10000,
"min_content_length": 500
},
"xiaohongshu": {
"enable_publish": true,
"cookie_file": "/home/ubuntu/xiaohongshu_cookies.txt",
"xhs_cli_path": "/home/ubuntu/.local/bin/xhs",
"default_tags": ["技术", "AI", "自动化", "编程", "科技资讯"],
"image_required": true,
"test_mode": true,
},
"scheduler": {
"cron_expression": "0 16 * * *",
"timezone": "Asia/Shanghai",
"enable_logging": true,
"log_retention_days": 7,
"max_concurrent": 1
}
}