技能圖譜SKILLSGROVE
技能圖譜/影片製作/cjccd/multi-platform-auto-upload/baijiahao-upload

baijiahao-upload

安裝

$npx skills add https://github.com/cjccd/multi-platform-auto-upload --skill baijiahao-upload
$git clone --depth 1 https://github.com/cjccd/multi-platform-auto-upload.git /tmp/multi-platform-auto-upload && mkdir -p ~/.claude/skills && cp -r /tmp/multi-platform-auto-upload/skills/baijiahao-upload ~/.claude/skills/baijiahao-upload
請幫我安裝這個 Agent Skill:https://github.com/cjccd/multi-platform-auto-upload/tree/4c8b6465c2473aac3cfe064c8c6dfbadd87b2238/skills/baijiahao-upload ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MIT当需要通过 `mpau baijiahao` CLI 登录百家号、校验 Cookie 或上传视频时使用此 skill。
以下 SKILL.md 內容轉載自 cjccd/multi-platform-auto-upload(提交 4c8b646),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 cjccd 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

百家号上传 Skill

统一使用项目 CLI 作为唯一执行入口:

mpau baijiahao <action> ...

项目路径

所有命令都在项目根目录执行:

cd <PROJECT_ROOT>

初始化

uv sync
python -m playwright install chromium
python -m patchright install chromium

百家号和 TikTok 的 legacy uploader 使用 Playwright;其他主线浏览器 uploader 主要使用 Patchright。

命令

登录

百家号登录是人工登录模式:命令会打开浏览器,用户在浏览器中完成登录,然后继续被暂停的 Playwright 会话。

uv run mpau baijiahao login --account <account_name>

校验 Cookie

uv run mpau baijiahao check --account <account_name>

输出 valid 或 invalid。

上传视频

uv run mpau baijiahao upload-video \
  --account <account_name> \
  --file <absolute path to video file> \
  --title "视频标题" \
  --tags "tag1,tag2"

定时发布:

uv run mpau baijiahao upload-video \
  --account <account_name> \
  --file <absolute path to video file> \
  --title "视频标题" \
  --tags "tag1,tag2" \
  --schedule "2026-06-05 18:30"

注意事项

  • 当前百家号仅支持视频上传。
  • legacy uploader 的定时时间选择精度有限,提交后建议到百家号后台人工确认。
  • Cookie 文件保存在 cookies/baijiahao_<account_name>.json。
  • 不要打印、分享或提交 Cookie 文件。
檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 cjccd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.