ClawHub
SkillsPluginsOfficialDocsSupport
K
Skills掘金自动发布

掘金自动发布

yang1002378395-cmyk@yang1002378395-cmyk
掘金自动发布 - 一键发布文章到掘金,支持定时发布、标签优化、封面设置。适合:内容创作者、技术博主。
Install in OpenClawRequires OpenClaw desktop app
Security check
Review
Version
1.0.3
Updated
May 18, 2026
License
MIT-0

Latest: v1.0.3

测试发布

Creative
#内容创作#定时

掘金自动发布 Skill

一键发布文章到掘金,自动化内容分发。

核心功能

1. 自动登录

  • Cookie 持久化
  • 自动续期
  • 失败提醒

2. 文章发布

  • Markdown 支持
  • 自动生成摘要
  • 标签推荐
  • 封面设置

3. 定时发布

  • 指定发布时间
  • 队列管理
  • 发布确认

使用方法

发布文章

bash
python3 ~/.openclaw/workspace/custom/juejin_publisher.py \
  --title "文章标题" \
  --content "文章内容(Markdown)" \
  --tags "Python,AI,自动化"

定时发布

bash
python3 ~/.openclaw/workspace/custom/juejin_publisher.py \
  --title "文章标题" \
  --file article.md \
  --schedule "2026-03-12 09:00"

批量发布

bash
python3 ~/.openclaw/workspace/custom/juejin_publisher.py \
  --queue ~/.openclaw/workspace/memory/content-queue/

配置文件

~/.openclaw/workspace/JUEJIN.md

yaml
# 掘金 Cookie(登录后获取)
cookie: "你的掘金 Cookie"

# 默认标签
default_tags:
  - 后端
  - Python
  - AI

# 发布设置
publish:
  # 是否立即发布
  auto_publish: true

  # 默认封面(留空自动生成)
  cover_image: ""

  # 文章分类
  category: "后端"

# 定时发布队列
queue_dir: "~/.openclaw/workspace/memory/content-queue/"

Cookie 获取方法

方法 1:浏览器开发者工具

  1. 登录掘金 juejin.cn
  2. F12 打开开发者工具
  3. Network → 找到任意请求
  4. Headers → Cookie → 复制完整值

方法 2:使用脚本

bash
python3 ~/.openclaw/workspace/custom/extract_juejin_cookie.py

API 说明

发布接口

text
POST https://api.juejin.cn/content_api/v1/article_draft/create

Headers:
  Cookie: [你的Cookie]

Body:
{
  "title": "文章标题",
  "mark_content": "Markdown 内容",
  "category_id": "分类ID",
  "tag_ids": ["标签ID"],
  "brief_content": "摘要"
}

标签 ID 对照

json
{
  "后端": "6809637773935378440",
  "前端": "6809637771516121096",
  "Python": "6809637771516119047",
  "AI": "6809637771516120071",
  "自动化": "6809637771516121096"
}

错误处理

Cookie 失效

text
❌ Cookie 失效,请重新登录
→ 执行 python3 extract_juejin_cookie.py

发布失败

text
❌ 发布失败:[错误信息]
→ 检查网络连接
→ 检查文章格式
→ 重试

最佳实践

发布时间

  • 工作日 9:00-10:00(早高峰)
  • 工作日 12:00-13:00(午休)
  • 工作日 18:00-19:00(下班)
  • 周末 10:00-11:00

标签选择

  • 选择 3-5 个相关标签
  • 优先选择热门标签
  • 不要选择无关标签

标题优化

  • 长度:15-30 字
  • 包含关键词
  • 有吸引力但不夸张

实战经验

✅ 成功案例

  • 发布 15+ 篇文章
  • 100% 发布成功率
  • Cookie 有效期 > 1 年

⚠️ 注意事项

  • 避免短时间大量发布(会被限流)
  • 文章要有真实价值(不要纯广告)
  • 互动能增加曝光(及时回复评论)

完整示例

python
#!/usr/bin/env python3
import requests

def publish_article(title, content, tags):
    cookies = load_cookies()
    url = "https://api.juejin.cn/content_api/v1/article_draft/create"
    data = {
        "title": title,
        "mark_content": content,
        "category_id": "6809637773935378440",
        "tag_ids": tags,
        "brief_content": content[:100]
    }
    response = requests.post(url, json=data, cookies=cookies)
    return response.json()

# 使用
publish_article(
    "用 OpenClaw 自动化赚钱",
    "# 前言\n...",
    ["6809637771516119047", "6809637771516120071"]
)

创建:2026-03-11 版本:1.0 状态:✅ 实战验证(已发布 15+ 篇)

Related skills

More in Creative
ClawHub

Skills and plugins for OpenClaw agents. Part of the wider OpenClaw ecosystem.

Explore docs

SkillsPluginsOfficialAudits

Publish SkillPublish PluginCreate org

OverviewOpenClawDocsBlog

SupportGitHubDiscord

Built alongside the OpenClaw ecosystem

LobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projectsLobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projects

© 2026 OpenClaw Foundation

Privacy policy·Status·Deployed on Vercel·Powered by Convex

....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals