首次提交代码
This commit is contained in:
40
references/config.example.json
Normal file
40
references/config.example.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"video_path": "C:/path/to/video.mp4",
|
||||
"title": "视频标题示例",
|
||||
"description": "视频正文或简介。可以包含换行。",
|
||||
"topics": ["视频号", "自动发布"],
|
||||
"cover_path": "C:/path/to/cover.jpg",
|
||||
"publish_at": null,
|
||||
"visibility": "public",
|
||||
"product_adapter": {
|
||||
"name": "playwright",
|
||||
"product": "built-in",
|
||||
"docs_url": "",
|
||||
"install_commands": [
|
||||
"python -m pip install -r requirements.txt",
|
||||
"python -m playwright install chromium"
|
||||
],
|
||||
"verify_commands": ["python -c \"import playwright; print('playwright ok')\""],
|
||||
"run_command": "python scripts/publish.py --config path/to/config.json --headed",
|
||||
"evidence": ["before-final-action screenshot", "run log"],
|
||||
"notes": "Use name=openclaw or name=workbuddy when the user wants a specific product adapter."
|
||||
},
|
||||
"browser": {
|
||||
"storage_state": ".auth/wechat_channels_state.json",
|
||||
"headless": false,
|
||||
"slow_mo_ms": 100,
|
||||
"timeout_ms": 60000,
|
||||
"review_seconds": 0
|
||||
},
|
||||
"selectors": {
|
||||
"create_url": "https://channels.weixin.qq.com/platform/post/create",
|
||||
"video_input": "input[type='file']",
|
||||
"cover_input": "",
|
||||
"title": "",
|
||||
"description": "",
|
||||
"save_draft_button": "",
|
||||
"publish_button": "",
|
||||
"schedule_button": "",
|
||||
"schedule_input": ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user