Overview
- Skill Key
- dyc0616c-oss/blockbeats-to-chainthink
- Author
- dyc0616c-oss
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/dyc0616c-oss/blockbeats-to-chainthink
- Latest Commit SHA
- fc97eca7039d8f85174e8c4532aa6cdb60bf7f82
BlockBeats to ChainThink Skill
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Blockbeats To Chainthink 技能。 若已安装,则直接安装 Blockbeats To Chainthink 技能。
# BlockBeats to ChainThink Skill
从律动 BlockBeats 抓取文章并自动保存到 ChainThink 后台草稿。
## 使用场景
当用户提供律动 BlockBeats 文章链接(如 `https://www.theblockbeats.info/news/xxxxx`),自动:
1. 提取文章标题、摘要、正文和图片
2. 保存到 ChainThink 后台草稿
3. 返回文章 ID
## 工作流程
1. 打开浏览器访问 BlockBeats 文章页面
2. 从 `window.__NUXT__.data[0].info` 提取文章数据
3. 调用 ChainThink API 保存草稿
## ChainThink API 配置
- **API 地址**: `https://api-v2.chainthink.cn/ccs/v1/admin/content/publish`
- **认证方式**: `x-token` + `x-user-id` headers
- **User ID**: 51
- **Token**: 从 TOOLS.md 读取(需要用户提供)
## 使用方法
用户发送律动文章链接即可,例如:
- "抓取这篇文章:https://www.theblockbeats.info/news/61465"
- "把这个保存到 ChainThink:https://www.theblockbeats.info/news/61461"
## 实现步骤
### 1. 提取文章内容
使用浏览器工具访问 BlockBeats 页面并执行:
```javascript
const data = window.__NUXT__.data[0];
return {
title: data.info.title,
abstract: data.info.abstract,
content: data.info.content
};
```
### 2. 保存到 ChainThink
调用 API:
```bash
curl 'https://api-v2.chainthink.cn/ccs/v1/admin/content/publish' \
-H 'Content-Type: application/json' \
-H 'X-App-Id: 101' \
-H 'x-token: <从TOOLS.md读取>' \
-H 'x-user-id: 51' \
--data-raw '{
"id": "0",
"is_translate": true,
"translation": {
"zh-CN": {
"title": "<文章标题>",
"text": "<HTML正文>",
"abstract": "<摘要>"
}
},
"type": 5,
"is_public": false,
"user_id": "3",
"as_user_id": "3"
}'
```
### 3. 返回结果
返回保存成功的文章 ID 和状态。
## 注意事项
- 图片链接保留原始 CDN 地址(`https://image.blockbeats.cn/...`)
- 内容格式为 HTML,保留所有标签
- 文章默认保存为草稿(`is_public: false`)
- Token 有效期约 7 天,过期需要重新获取
## Token 配置
在 TOOLS.md 中添加:
```markdown
### ChainThink API Token
x-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
x-user-id: 51
```
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.