返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
t

toutiao-publisher

Publish articles to Toutiao (Today's Headlines). Handles persistent authentication (login once) and session management. Opens browser for interactive publishing.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
518
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

toutiao-publisher

# Toutiao Publisher Skill Manage Toutiao (Today's Headlines) account, maintain persistent login session, and publish articles. ## When to Use This Skill Trigger when user: - Asks to publish to Toutiao/Today's Headlines - Wants to manage Toutiao login - Mentions "toutiao" or "头条号" ## Core Workflow ### Step 1: Authentication (One-Time Setup) The skill requires a one-time login. The session is persisted for subsequent uses. ```bash # Browser will open for manual login (scan QR code) python scripts/run.py auth_manager.py setup ``` **Instructions:** 1. Run the setup command. 2. A browser window will open loading the Toutiao login page. 3. Log in manually (e.g., scan QR code). 4. Once logged in (redirected to dashboard), the script will save the session and close. ### Step 2: Publish Article ```bash # Opens browser with authenticated session at publish page python scripts/run.py publisher.py ``` **Instructions:** 1. Run the publisher command. 2. Browser opens directly to the "Publish Article" page. 3. Write and publish the article manually. 4. Press `Ctrl+C` in the terminal when done. > **Note:** Toutiao requires titles to be **2-30 characters**. This tool automatically optimizes titles to fit this constraint (truncating if >30, padding if <2). #### Advanced Usage (Automated) You can fully automate the publishing process by providing arguments: ```bash # Publish with title, content file, and cover image python scripts/run.py publisher.py --title "AI Trends 2025" --content "article.md" --cover "assets/cover.jpg" --headless ``` ### Management ```bash # Check authentication status python scripts/run.py auth_manager.py status # Clear authentication data (logout) python scripts/run.py auth_manager.py clear ``` ## Technical Details - **Persistent Auth**: Uses `patchright` to launch a persistent browser context. Cookies and storage state are saved to `data/browser_state/state.json`. - **Anti-Detection**: Uses `patchright`'s stealth features to avoid bot detection. - **Environment**: Automatically manages a virtual environment (`.venv`) with required dependencies. ## Script Reference - `scripts/auth_manager.py`: Handles login, session validation, and state persistence. - `scripts/publisher.py`: Launches authenticated browser for publishing. - `scripts/run.py`: Wrapper ensuring execution in the correct virtual environment.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 toutiao-publisher-1776287468 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 toutiao-publisher-1776287468 技能

通过命令行安装

skillhub install toutiao-publisher-1776287468

下载

⬇ 下载 toutiao-publisher v1.0.1(免费)

文件大小: 20.68 KB | 发布时间: 2026-4-16 16:59

v1.0.1 最新 2026-4-16 16:59
update skill name

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部