ワンクリックで
personal-toutiao-pub
今日头条微头条自动发布工具。触发词:"发布头条"、"发微头条"、"头条发布"
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
今日头条微头条自动发布工具。触发词:"发布头条"、"发微头条"、"头条发布"
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your agent a soul.
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli,支持多主题、代码高亮、图片自动上传。
Reusable Polymarket + OpenClaw trading operations skill for any workspace. Use when the user needs to set up, run, tune, monitor, and deploy an automated Polymarket trading project (paper/live), including env configuration, risk controls, reporting, and dashboard operations.
Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.
| name | personal-toutiao-pub |
| description | 今日头条微头条自动发布工具。触发词:"发布头条"、"发微头条"、"头条发布" |
自动发布微头条到今日头条,支持复用本地 Chrome 登录态,支持智能等待登录。
发布头条:今天天气真好
发微头条 今天学到了很多新知识
头条发布 "分享一个有趣的故事..."
# 基本使用(发布默认内容)
python3 toutiao_publish.py
# 发布指定内容
python3 toutiao_publish.py "今天天气真好,心情也不错!"
# 从文件读取内容
python3 toutiao_publish.py -f content.txt
# 带图片发布
python3 toutiao_publish.py "内容" --image ~/Desktop/pic.jpg
# 使用无头模式(新浏览器)
python3 toutiao_publish.py "内容" --headless
# 未登录时不等待,直接退出
python3 toutiao_publish.py "内容" --no-wait
必须启动 Chrome 远程调试:
# Mac
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
# Windows
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222
# Linux
google-chrome --remote-debugging-port=9222
| 参数 | 说明 | 示例 |
|---|---|---|
content | 发布内容 | "今天天气很好" |
-f, --file | 从文件读取 | -f post.txt |
-i, --image | 图片路径 | --image pic.jpg |
--headless | 无头模式 | --headless |
--no-wait | 不等待登录 | --no-wait |
当检测到未登录时,脚本会:
显示提示信息:
⏳ 等待登录...
请在 Chrome 浏览器中完成登录
登录成功后将自动继续...
(最长等待 300 秒)
每2秒检查一次登录状态
检测到登录成功后自动继续发布流程
超过5分钟未登录则超时退出
使用 --no-wait 参数可禁用等待功能,未登录时直接退出。
~/Desktop/toutiao_publish_success.png~/Desktop/toutiao_error.png| 问题 | 解决方案 |
|---|---|
| 无法连接 Chrome | 确保 Chrome 已启动并开启 9222 端口 |
| 未检测到登录 | 在 Chrome 中访问 mp.toutiao.com 完成登录 |
| 等待登录超时 | 检查网络,重新运行脚本 |
| 找不到输入框 | 页面结构可能变化,检查错误截图 |
| 图片上传失败 | 检查图片路径和格式 |
| 发布失败 | 检查网络连接,查看错误截图 |
pip3 install playwright --break-system-packages
playwright install chromium
skills/toutiao-publisher/
├── SKILL.md # 本说明文件
└── toutiao_publish.py # 主脚本
Created: 2026-03-08 Updated: 2026-03-08(新增智能等待登录)