闲社服务运行正常AI智能体自动化平台
x

XCrawl爬取

技能标识:xcrawl-crawl

Use this skill for XCrawl crawl tasks, including bulk site crawling, crawler rule design, async status polling, and delivery of crawl output for downstream scrape and search workflows.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.2
检测标记
后台标记通过
免费
免费获取
1
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

XCrawl爬取

XCrawl 爬虫

概述

该技能通过 XCrawl 爬虫 API 编排全站或限定范围的爬取任务。
默认行为为原始透传:直接返回上游 API 响应体,不做任何处理。

本地配置要求

使用此技能前,用户必须创建本地配置文件,并在其中写入 XCRAWLAPIKEY。

路径:~/.xcrawl/config.json

json
{
XCRAWLAPIKEY: apikey>
}

仅从本地配置文件读取 API 密钥,无需设置全局环境变量。

积分与账户设置

使用 XCrawl API 会消耗积分。
如果用户没有账户或可用积分,请引导其前往 https://dash.xcrawl.com/ 注册。
注册后,可在运行请求前激活免费的 1000 积分套餐。

工具权限策略

仅请求 curl 和 node 的运行时权限。
不请求 Python、Shell 辅助脚本或其他运行时权限。

API 接口

  • - 启动爬取:POST /v1/crawl
  • 读取结果:GET /v1/crawl/{crawlid}
  • 基础 URL:https://run.xcrawl.com
  • 必需请求头:Authorization: Bearer API_KEY>

使用示例

cURL(创建 + 结果)

bash
APIKEY=$(node -e const fs=require(fs);const p=process.env.HOME+/.xcrawl/config.json;const k=JSON.parse(fs.readFileSync(p,utf8)).XCRAWLAPI_KEY||;process.stdout.write(k))

CREATE_RESP=$(curl -sS -X POST https://run.xcrawl.com/v1/crawl \
-H Content-Type: application/json \
-H Authorization: Bearer ${API_KEY} \
-d {url:https://example.com,crawler:{limit:100,max_depth:2},output:{formats:[markdown,links]}})

echo $CREATE_RESP

CRAWLID=$(node -e const s=process.argv[1];const j=JSON.parse(s);process.stdout.write(j.crawlid||) $CREATE_RESP)

curl -sS -X GET https://run.xcrawl.com/v1/crawl/${CRAWL_ID} \
-H Authorization: Bearer ${API_KEY}

Node

bash
node -e
const fs=require(fs);
const apiKey=JSON.parse(fs.readFileSync(process.env.HOME+/.xcrawl/config.json,utf8)).XCRAWLAPIKEY;
const body={url:https://example.com,crawler:{limit:300,max_depth:3,include:[/docs/.],exclude:[/blog/.]},request:{locale:ja-JP},output:{formats:[markdown,links,json]}};
fetch(https://run.xcrawl.com/v1/crawl,{
method:POST,
headers:{Content-Type:application/json,Authorization:Bearer ${apiKey}},
body:JSON.stringify(body)
}).then(async r=>{console.log(await r.text());});

请求参数

请求端点与请求头

  • - 端点:POST https://run.xcrawl.com/v1/crawl
  • 请求头:
  • Content-Type: application/json
  • Authorization: Bearer

请求体:顶层字段

字段类型必填默认值描述
url字符串是-网站入口 URL
crawler
对象 | 否 | - | 爬虫配置 | | proxy | 对象 | 否 | - | 代理配置 | | request | 对象 | 否 | - | 请求配置 | | js_render | 对象 | 否 | - | JS 渲染配置 | | output | 对象 | 否 | - | 输出配置 | | webhook | 对象 | 否 | - | 异步回调配置 |

crawler

字段类型必填默认值描述
limit整数否100最大页面数
include
字符串数组 | 否 | - | 仅包含匹配的 URL(支持正则) | | exclude | 字符串数组 | 否 | - | 排除匹配的 URL(支持正则) | | max_depth | 整数 | 否 | 3 | 从入口 URL 开始的最大深度 | | includeentiredomain | 布尔值 | 否 | false | 爬取整个网站而非仅子路径 | | include_subdomains | 布尔值 | 否 | false | 包含子域名 | | includeexternallinks | 布尔值 | 否 | false | 包含外部链接 | | sitemaps | 布尔值 | 否 | true | 使用站点地图 |

proxy

字段类型必填默认值描述
location字符串否USISO-3166-1 alpha-2 国家代码,例如 US / JP / SG
sticky_session
字符串 | 否 | 自动生成 | 粘性会话 ID;相同 ID 会尝试复用出口 |

request

字段类型必填默认值描述
locale字符串否en-US,en;q=0.9影响 Accept-Language
device
字符串 | 否 | desktop | desktop / mobile;影响 UA 和视口 | | cookies | 对象映射 | 否 | - | Cookie 键值对 | | headers | 对象映射 | 否 | - | 请求头键值对 | | onlymaincontent | 布尔值 | 否 | true | 仅返回主要内容 | | block_ads | 布尔值 | 否 | true | 尝试拦截广告资源 | | skiptlsverification | 布尔值 | 否 | true | 跳过 TLS 验证 |

js_render

字段类型必填默认值描述
enabled布尔值否true启用浏览器渲染
wait_until
字符串 | 否 | load | load / domcontentloaded / networkidle | | viewport.width | 整数 | 否 | - | 视口宽度(桌面端 1920,移动端 402) | | viewport.height | 整数 | 否 | - | 视口高度(桌面端 1080,移动端 874) |

output

字段类型必填默认值描述
formats字符串数组否[markdown]输出格式
screenshot
字符串 | 否 | viewport | full_page / viewport(仅当 formats 包含 screenshot 时生效) | | json.prompt | 字符串 | 否 | - | 提取提示词 | | json.json_schema | 对象 | 否 | - | JSON Schema |

output.formats 枚举值:

  • - html
  • raw_html
  • markdown
  • links
  • summary
  • screenshot
  • json

webhook

字段类型必填默认值描述
url字符串否-回调 URL
headers
对象映射 | 否 | - | 自定义回调请求头 | | events | 字符串数组 | 否 | [started,completed,failed] | 事件:started / completed / failed |

响应参数

创建响应(POST /v1/crawl)

字段类型描述
crawl_id字符串任务 ID
endpoint
字符串 | 始终为 crawl | | version | 字符串 | 版本号 | | status | 字符串 | 始终为 pending |

结果响应(GET /v1/crawl/{crawl_id})

| 字段 |

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 xcrawl-crawl-1776122942 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 xcrawl-crawl-1776122942 技能

通过命令行安装

skillhub install xcrawl-crawl-1776122942

下载

⬇ 下载 xcrawl-crawl v1.0.2(免费)

文件大小: 3.77 KB | 发布时间: 2026-4-15 15:02

v1.0.2 最新 2026-4-15 15:02
xcrawl-crawl 1.0.2

- Adds skill documentation detailing API endpoints, config requirements, permissions, and workflow.
- Clarifies required local config file for API key; no environment variable required.
- Describes supported crawl parameters, output types, result polling, and example usage with Bash and Node.
- Specifies tool restrictions: only requests curl and node binaries.
- Outlines credits usage and directs users to free account sign-up if needed.
返回顶部