Loading...
Loading...
WeChat Channels Auto-Publishing Skill. Use this skill when you need to publish videos to WeChat Channels. The skill includes functions such as obtaining login cookies, uploading videos, setting titles and topics, scheduled publishing, original content declaration, etc.
npx skill4agent add zrt-ai-lab/opencode-skills auto-weixin-videopip install playwright
playwright install chromiumpython .opencode/skills/auto-weixin-video/scripts/get_cookie.pypython .opencode/skills/auto-weixin-video/scripts/check_cookie.pypython .opencode/skills/auto-weixin-video/scripts/get_cookie.py.mp4python .opencode/skills/auto-weixin-video/scripts/publish.py \
--video "video file path" \
--title "video title" \
--tags "topic1,topic2,topic3" \
[--original] \
[--schedule "2025-01-31 18:00"]| Parameter | Short Form | Description | Required |
|---|---|---|---|
| | Video file path | ✅ |
| | Video title | ✅ |
| | Topic tags, separated by commas | ❌ |
| | Declare as original content | ❌ |
| | Original content type (e.g., Life, Technology) | ❌ |
| | Scheduled publishing time (format: YYYY-MM-DD HH:MM) | ❌ |
| Save as draft instead of publishing | ❌ | |
| Run in headless mode (browser not displayed) | ❌ |
# Publish immediately
python .opencode/skills/auto-weixin-video/scripts/publish.py \
-v ~/Videos/demo.mp4 \
-t "I learned a super practical trick today" \
-g "dry goods sharing, efficiency improvement, learning"
# Declare original + scheduled publishing
python .opencode/skills/auto-weixin-video/scripts/publish.py \
-v ~/Videos/demo.mp4 \
-t "Weekend Vlog | A cozy time alone" \
-g "vlog, weekend daily, life record" \
--original \
-s "2025-02-01 18:00"
# Save as draft
python .opencode/skills/auto-weixin-video/scripts/publish.py \
-v ~/Videos/demo.mp4 \
-t "Test Video" \
--draft.opencode/skills/auto-weixin-video/
├── skill.md # Skill documentation
├── scripts/
│ ├── get_cookie.py # Obtain login cookie
│ ├── check_cookie.py # Check cookie validity
│ └── publish.py # Main video publishing script
└── cookies/
└── weixin_video.json # Cookie storage file (automatically generated)get_cookie.pypublish.py