Search

PythonReactSEOPDF
OpenClaw

Blockbeats To Chainthink

BlockBeats to ChainThink Skill

dyc0616c-oss0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install dyc0616c-oss/blockbeats-to-chainthink

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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 页面并执行:

const data = window.__NUXT__.data[0];
return {
  title: data.info.title,
  abstract: data.info.abstract,
  content: data.info.content
};
2. 保存到 ChainThink

调用 API:

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 中添加:

### ChainThink API Token

x-token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
x-user-id: 51

Source information

Source
github
Repository
openclaw/skills
Path
skills/dyc0616c-oss/blockbeats-to-chainthink
Version
—
Commit
fc97eca7039d8f85174e8c4532aa6cdb60bf7f82
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 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
```

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.