
Auto Weixin Video
This automates posting videos to WeChat Video Channel using Playwright to drive a real browser through the creator center. You scan a QR code once to save cookies, then run a script with your video file, title, and hashtags. It handles the usual publishing options: scheduled posts, original content declarations, and draft mode. The setup is straightforward if you've used browser automation before, just pip install playwright and run the cookie script. Cookie expiration is the main friction point since WeChat sessions don't last long, so you'll need to rescan periodically. Worth it if you're publishing to WeChat Video regularly and want to skip the manual upload dance, especially for batch operations where you can script multiple uploads with delays between them.
- skills.sh installs
- 198
- GitHub stars
- 299
- last updated
- Aug 21, 2026
Install
$ npx -y skills add zrt-ai-lab/opencode-skills --skill auto-weixin-video --agent claude-codeInstalls into .claude/skills of the current project.
Files
微信视频号自动发布技能
这个技能用于自动化发布视频到微信视频号创作者中心。
使用场景
- 用户需要发布视频到视频号时
- 用户说"发视频号"、"上传视频号"、"发布到微信视频号"时
- 用户有视频文件需要分发到视频号平台时
技术原理
基于 Playwright 浏览器自动化,模拟真实用户操作微信视频号创作者中心(https://channels.weixin.qq.com):
- 首次使用需微信扫码登录,保存 Cookie
- 后续使用 Cookie 自动登录
- 自动化填充标题、话题、短标题等信息
- 支持定时发布、原创声明、添加到合集
前置条件
1. 安装依赖
pip install playwright
playwright install chromium
2. 首次登录获取 Cookie
python .opencode/skills/auto-weixin-video/scripts/get_cookie.py
执行后会打开浏览器,使用微信扫码登录,登录成功后 Cookie 会自动保存。
工作流程
第一步:确认登录状态
检查 Cookie 是否存在且有效:
python .opencode/skills/auto-weixin-video/scripts/check_cookie.py
如果 Cookie 失效,需要重新获取:
python .opencode/skills/auto-weixin-video/scripts/get_cookie.py
第二步:准备视频文件
视频文件要求:
- 格式:
.mp4(推荐) - 分辨率:建议 1080x1920(竖版 9:16)或 1920x1080(横版 16:9)
- 时长:建议 1 分钟以内效果最佳
第三步:发布视频
python .opencode/skills/auto-weixin-video/scripts/publish.py \
--video "视频文件路径" \
--title "视频标题" \
--tags "话题1,话题2,话题3" \
[--original] \
[--schedule "2025-01-31 18:00"]
参数说明
Sponsors
Details
- Repository
- github.com/zrt-ai-lab/opencode-skills
- Category
- AI & Agent Building
- First seen
- Jun 3, 2026