SkillsGrove
SkillsGrove/Production vidéo/cjccd/multi-platform-auto-upload/baijiahao-upload

baijiahao-upload

Installation

$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
Installe pour moi cette Agent Skill : https://github.com/cjccd/multi-platform-auto-upload/tree/4c8b6465c2473aac3cfe064c8c6dfbadd87b2238/skills/baijiahao-upload — lis d’abord son SKILL.md et ses scripts, et ne l’installe dans mon dossier de compétences qu’après avoir vérifié qu’elle est sûre.

Résumé

Description d’origine · MIT当需要通过 `mpau baijiahao` CLI 登录百家号、校验 Cookie 或上传视频时使用此 skill。
Le SKILL.md ci-dessous est reproduit depuis cjccd/multi-platform-auto-upload (commit 4c8b646) sous licence MIT. Le texte est inchangé ; seules les métadonnées d’en-tête du fichier sont omises, les images sont affichées sous forme de liens et les fichiers très longs sont tronqués. Copyright 2026 cjccd. Licence : LICENSE. Seul le fichier d’instructions est affiché ; consultez le dépôt d’origine pour les éventuels scripts.

百家号上传 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 文件。
Voir le texte intégral de la licence (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.