当前位置: 首页 > Skill >

jike-publisher

jike-publisher

jike-publisher

Publish posts to Jike (即刻) using browser automation. Use when the user wants to post content to Jike, share updates on Jike, or automate Jike posting. Suppor...

1.0.0 2026.11.23 722
获取Skill文件查看使用说明
作 者:周舟 许可证: 更新时间:2026.11.23
本文目录展开

Jike Publisher

Automate posting to Jike (即刻) using browser automation through OpenClaw's managed browser.

Prerequisites

  • Jike account must be logged in via managed browser (profile="openclaw")
  • Browser must have active session with valid cookies
  • Navigate to https://web.okjike.com/ first to ensure login

Quick Start

Basic Post

# 1. Prepare content with Unicode escape (for Chinese text)
content = "刚刚看到一篇很棒的技术文章!"
escaped_content = content.encode('unicode_escape').decode('ascii')

# 2. Navigate to Jike homepage
browser(action="navigate", targetUrl="https://web.okjike.com/following", targetId=<tab_id>)

# 3. Get page snapshot to find elements
browser(action="snapshot", targetId=<tab_id>)

# 4. Click the post textbox (ref from snapshot)
# Look for: textarea or contenteditable div
browser(action="act", request={"kind": "click", "ref": "<textbox_ref>"}, targetId=<tab_id>)

# 5. Type content with Unicode escape
browser(action="act", request={"kind": "type", "ref": "<textbox_ref>", "text": escaped_content}, targetId=<tab_id>)

# 6. Get fresh snapshot to find send button
browser(action="snapshot", targetId=<tab_id>)

# 7. Click send button (ref from snapshot, usually "发布" text)
browser(action="act", request={"kind": "click", "ref": "<send_ref>"}, targetId=<tab_id>)

# 8. Wait and verify
sleep(3)
browser(action="snapshot", targetId=<tab_id>)

Element References (需要实际获取)

即刻的页面元素引用需要通过 snapshot 实际获取,常见元素:

  • Post textbox: 通常在页面顶部的输入框
  • Send button: "发布" 按钮
  • Topic button: 话题选择按钮(可选)

重要: 元素引用会频繁变化,每次操作前都要先 snapshot!

Content Features

支持的内容类型

  1. 纯文本: 直接输入
  2. Emoji: 可以直接使用 (如 💪🎉)
  3. 话题: 使用 #话题# 格式
  4. 链接: 直接粘贴 URL 会自动展开
  5. 换行: 使用 n

内容限制

  • 最大长度: 即刻没有严格字数限制,建议 200-500 字
  • 推荐长度: 100-200 字更易互动

Workflows

Workflow 1: 简单发布

  1. 打开 https://web.okjike.com/following
  2. Snapshot 获取元素引用
  3. 点击输入框
  4. 输入内容
  5. 点击发布
  6. 验证成功

Workflow 2: 带话题发布

  1. 同 Workflow 1
  2. 输入内容时包含 #话题#
  3. 发布

State Management

记录发布历史到 memory/jike-state.json:

{
  "lastPublishTime": 1740880260,
  "lastPublishDate": "2026-03-16T12:38:00+08:00",
  "lastContent": "Your last post content..."
}

Error Handling

常见问题

  1. 登录过期

    • 症状: 跳转到登录页
    • 解决: 手动登录后重试
  2. 找不到元素

    • 症状: ref 无效
    • 解决: 重新 snapshot 获取最新 ref
  3. 发布按钮禁用

    • 症状: 按钮不可点击
    • 解决: 检查内容是否为空
  4. 内容未出现

    • 症状: 无错误但看不到内容
    • 解决: 等待几秒,刷新页面

Best Practices

  1. Unicode 转义: 中文内容使用转义
  2. 先 snapshot: 元素引用会变化
  3. 分步操作: 点击 → 输入 → snapshot → 发布
  4. 验证: 发布后检查是否成功
  5. 速率限制: 建议间隔 60 秒以上
  6. 状态记录: 更新 jike-state.json

Technical Details

浏览器自动化

  • Profile: openclaw (托管浏览器)
  • 方法: Chrome DevTools Protocol (CDP)
  • 会话: 基于 Cookie,重启后保持
  • 无需 API: 纯浏览器自动化

Request 格式

// ✅ 正确
request={"kind": "type", "ref": "eXXX", "text": "content"}

// ❌ 错误
request="{"kind": "type", "ref": "eXXX", "text": "content"}"

Unicode 转义(重要!)

问题: 中文引号(""、'')会导致 JSON 解析错误

解决: 使用 Unicode 转义:

# 转换中文为 Unicode 转义
text = "刚刚看到一篇很棒的技术文章"
escaped = text.encode('unicode_escape').decode('ascii')
# 结果: u521au521au770bu5230u4e00u7bc87u5f88u68d2u7684u6280u672fu6587u7ae0

Reference Files

  • EXAMPLES.md: 实际发布示例
  • TROUBLESHOOTING.md: 详细错误解决方案
  • UNICODE_ESCAPE.md: Unicode 转义完整指南

Scripts

  • post_jike.py: 独立 Python 脚本(可选)

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,036
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,014
Skill 文件
  • SKILL.md
    • Jike Publisher
    • Prerequisites
    • Quick Start
      • Basic Post
    • Element References (需要实际获取)
    • Content Features
      • 支持的内容类型
      • 内容限制
    • Workflows
      • Workflow 1: 简单发布
      • Workflow 2: 带话题发布
    • State Management
    • Error Handling
      • 常见问题
    • Best Practices
    • Technical Details
      • 浏览器自动化
      • Request 格式
      • Unicode 转义(重要!)
    • Reference Files
    • Scripts
  • 项目或源文件

相关 Skill

更多
饿了么外卖点餐 饿了么外卖点餐 Order food delivery from Ele.me (饿了么) using browser automation. The agent controls a real browser via Playwright MCP to browse restaurants, add items to cart...
douyin-web-control douyin-web-control Use this skill when the user wants an Agent to operate Douyin web through the douyin-web CLI, including launching or focusing Douyin, login checks, feed navigation, search, current video info, playback control, comments, likes, following the current author, favorites, sharing, danmaku, screenshots, or screen/audio recording. Prefer the CLI over direct browser automation for Douyin control. Do not use it for video-watching strategy, recommendation guidance, persona behavior, or video creation ide
China Express China Express 中国快递查询与物流信息解析。Use when the user wants to directly get a Chinese package status. Force browser automation on https://www.kuaidi100.com/ and read the live resu...
airbnb-gateway airbnb-gateway A skill for safe, coherent Airbnb operations in OpenClaw-style agent environments. It standardizes how agents check inbox threads, inspect reservations and booking state, review calendar context, draft guest replies, send messages safely, and verify whether a send actually appeared in the live Airbnb thread. It teaches a strict operating model: prefer Airbnb-native endpoints before generic browser automation; treat send acknowledgments as attempted, not automatically confirmed; verify outbound m
Browserable Self-Hostable Browser Automation for AI Agents Browserable Self-Hostable Browser Automation for AI Agents Browserable 是一个开源、可自托管的浏览器自动化库,专为 AI 代理构建。此技能将 Browserable 转变为一种可重复的工作流程,用于导航、表单填写、数据提取和基于浏览器的任务执行,而不是使用托管的黑盒。