智能网页抓取 Skill安装与使用教程
io.clawhub.mariusfit/smart-web-scraper · v1.0.0
从任意网页提取结构化数据,支持 CSS 选择器、表格与列表自动识别、JSON/CSV 输出格式,适用于网页抓取与数据抽取任务。
原文名称:Smart Web Scraper
原文描述:Extract structured data from any web page. Supports CSS selectors, auto-detection of tables and lists, JSON/CSV output formats. Use when asked to scrape a we...
建议先在本页复制安装配置,再到上游核对文档与权限。
热度数据
产品介绍
从任意网页提取结构化数据,支持 CSS 选择器、表格与列表自动识别、JSON/CSV 输出格式,适用于网页抓取与数据抽取任务。 智能网页抓取 是一个Agent Skill,收录自 ClawHub。本页提供产品介绍、配置教程、安装命令与适用场景,支持 Trae、通义灵码、Cursor、Claude Code、VS Code 等。
适用场景
AgentHub Verified 可用性验证技术测试通过
自动化测试流水线已校验安装命令、传输协议与客户端兼容性
将提示词发送给您的 AI 安装该 Skill
推荐请根据 https://myagenthub.cn/install/skill.md 这份安装文档,自动识别当前所处的 IDE 客户端并帮我安装 Skill「mariusfit/smart-web-scraper」,无需额外询问,装好后告诉我如何验证生效。
💡复制后直接粘贴到 IDE 的 AI 对话框(如 Cursor、Trae、Claude Code),Agent 将自动执行安装并配置生效。
按平台快速复制备选
选择你的平台查看安装方式
选择安装方式
# 改 --ai 切换客户端:trae | lingma | workbuddy | kimi | qwen | cursor | claude-code | windsurf | cline | vscode | codex | openclaw
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai cursor -y配置教程
- 打开 智能网页抓取 详情页,确认来源为 ClawHub,并阅读下方适用场景。
- 选择 Trae、通义灵码、WorkBuddy、Cursor、Claude Code 或通用 CLI,复制对应安装命令。
- 在终端执行命令,或将 SKILL.md 放到项目的 .trae/skills/、.lingma/skills/、.cursor/skills/ 等目录。
- 重载客户端窗口后,在对话中描述任务,Agent 会按 Skill description 自动匹配。
安装命令
以下安装命令与配置步骤已写入页面 HTML,搜索引擎与未启用 JavaScript 的浏览器均可直接读取。
通用 — Skills CLI(推荐)
AgentHub CLI(改 --ai)
# 改 --ai 切换客户端:trae | lingma | workbuddy | kimi | qwen | cursor | claude-code | windsurf | cline | vscode | codex | openclaw
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai cursor -yAPI 一键下载
# 手动下载(Cursor 项目级示例)
mkdir -p .cursor/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d .cursor/skills/smart-web-scraperCursor
AgentHub CLI(改 --ai)
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai cursor -yAPI 一键下载
mkdir -p .cursor/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d .cursor/skills/smart-web-scraperClawHub CLI 安装后复制
# 在项目根目录执行 install
clawhub install mariusfit/smart-web-scraper
mkdir -p .cursor/skills/smart-web-scraper
cp -R ./skills/smart-web-scraper/. .cursor/skills/smart-web-scraper/
# 源:./skills/smart-web-scraper/SKILL.md
# 目标:.cursor/skills/smart-web-scraper/SKILL.mdTrae(字节跳动)
- Trae 原生支持 Skill 规范:项目级配置在 .trae/skills/<技能名>/,全局在 ~/.trae/skills/
- 点击复制安装命令在项目根目录终端执行,自动拉取 SKILL.md 及相关依赖
- 重载 Trae 窗口后,在 AI 对话中描述需求即可自动激活该技能
AgentHub CLI(改 --ai)
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai trae -yAPI 一键下载
mkdir -p .trae/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d .trae/skills/smart-web-scraper用户级目录
mkdir -p ~/.trae/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d ~/.trae/skills/smart-web-scraper通义灵码(阿里)
- 通义灵码支持在项目 .lingma/skills/<技能名>/ 或用户全局目录 ~/.lingma/skills/ 识别技能
- 终端运行安装命令拉取 SKILL.md
- 打开通义灵码智能体(Agent)模式,对话即可自动按 description 匹配该技能
AgentHub CLI(改 --ai)
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai lingma -yAPI 一键下载
mkdir -p .lingma/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d .lingma/skills/smart-web-scraper用户级目录
mkdir -p ~/.lingma/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d ~/.lingma/skills/smart-web-scraperWorkBuddy / 腾讯云代码助手
- WorkBuddy 只从项目 .workbuddy/skills/<技能名>/(用户级 ~/.workbuddy/skills/)读取技能;.codebuddy/skills/ 属于 CodeBuddy
- 上方 Skills CLI 命令以 -a codebuddy 安装,末尾已附同步命令,把技能复制到 .workbuddy/skills
- 用 AgentHub CLI(--ai workbuddy)会自动同步;完成后重载对话面板,即按 SKILL.md 的 description 自动索引
AgentHub CLI(改 --ai)
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai workbuddy -yAPI 一键下载
mkdir -p .workbuddy/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d .workbuddy/skills/smart-web-scraper用户级目录
mkdir -p ~/.workbuddy/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d ~/.workbuddy/skills/smart-web-scraperClaude Code
AgentHub CLI(改 --ai)
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai claude-code --global -yAPI 一键下载
mkdir -p ~/.claude/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d ~/.claude/skills/smart-web-scraperClawHub CLI 安装后复制
clawhub install mariusfit/smart-web-scraper
mkdir -p ~/.claude/skills/smart-web-scraper
cp -R ./skills/smart-web-scraper/. ~/.claude/skills/smart-web-scraper/
# 源:./skills/smart-web-scraper/SKILL.md
# 目标:~/.claude/skills/smart-web-scraper/SKILL.md
# https://clawhub.ai/mariusfit/smart-web-scraperKimi Code(月之暗面)
- Kimi Code 兼容标准 Agent Skills:项目技能位于 .agents/skills/<技能名>/,全局位于 ~/.agents/skills/
- 终端执行命令完成安装
- 在 Kimi Code CLI 或 Agent 对话中提出相应任务,AI 会自动按步骤规划与执行
AgentHub CLI(改 --ai)
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai kimi -yAPI 一键下载
mkdir -p .agents/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d .agents/skills/smart-web-scraper用户级目录
mkdir -p ~/.agents/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d ~/.agents/skills/smart-web-scraper通义千问(Qwen Code)
- 通义千问(Qwen Code)支持项目目录 .qwen/skills/<技能名>/ 与全局 ~/.qwen/skills/
- 终端执行命令将 SKILL.md 部署至目录
- 在 Qwen Agent 模式下直接发送任务提示词即可自动识别
AgentHub CLI(改 --ai)
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai qwen -yAPI 一键下载
mkdir -p .qwen/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d .qwen/skills/smart-web-scraper用户级目录
mkdir -p ~/.qwen/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d ~/.qwen/skills/smart-web-scraperWindsurf
- Windsurf 支持在项目根目录 .windsurf/skills/<技能名>/ 或全局 ~/.codeium/windsurf/skills/ 放置技能
- 执行安装命令后刷新 Cascade 窗口
- 对话中 Cascade 会自动识别任务并按 SKILL.md 规范进行编码与重构
AgentHub CLI(改 --ai)
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai windsurf -yAPI 一键下载
mkdir -p .windsurf/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d .windsurf/skills/smart-web-scraper用户级目录
mkdir -p ~/.codeium/windsurf/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d ~/.codeium/windsurf/skills/smart-web-scraperCline
- Cline 支持标准 .agents/skills/<技能名>/ 目录结构
- 运行命令将技能写入项目
- 在 VS Code Cline 扩展中提问即可直接调用
AgentHub CLI(改 --ai)
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai cline -yAPI 一键下载
mkdir -p .agents/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d .agents/skills/smart-web-scraperCherry Studio
- Cherry Studio 可作为自定义智能体或提示词使用该技能
- 复制指令获取 SKILL.md 文本内容
- 在 Cherry Studio → 助手管理中新建/编辑助手,将内容粘贴到「系统提示词」中保存启用
# 下载并提取 SKILL.md 指令内容
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -p /tmp/smart-web-scraper.zip SKILL.md
# 复制上述输出,粘贴至 Cherry Studio → 助手设置 →「系统提示词」VS Code / GitHub Copilot
AgentHub CLI(改 --ai)
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai vscode -yAPI 一键下载
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
mkdir -p .github/skills/smart-web-scraper
unzip -o /tmp/smart-web-scraper.zip -d .github/skills/smart-web-scraperOpenAI Codex
AgentHub CLI(改 --ai)
curl -fsSL "https://myagenthub.cn/cli/agenthub-skill.mjs" | node --input-type=module - init mariusfit/smart-web-scraper --ai codex --global -yAPI 一键下载
mkdir -p ~/.codex/skills/smart-web-scraper
curl -sL "https://clawhub.ai/api/v1/download?slug=smart-web-scraper&version=1.0.0" -o /tmp/smart-web-scraper.zip
unzip -o /tmp/smart-web-scraper.zip -d ~/.codex/skills/smart-web-scraperClawHub CLI 安装后复制
clawhub install mariusfit/smart-web-scraper
mkdir -p ~/.codex/skills/smart-web-scraper
cp -R ./skills/smart-web-scraper/. ~/.codex/skills/smart-web-scraper/
# 源:./skills/smart-web-scraper/SKILL.md
# 目标:~/.codex/skills/smart-web-scraper/SKILL.mdOpenClaw — ClawHub CLI
# OpenClaw / ClawHub CLI(推荐)
# 在项目根或 OpenClaw 工作区目录执行
clawhub install mariusfit/smart-web-scraper
# 安装后 SKILL.md 位于:
# ./skills/smart-web-scraper/SKILL.md
# (若已配置 OpenClaw 工作区,则在 <workspace>/skills/smart-web-scraper/)
# 仅查看不安装
clawhub inspect mariusfit/smart-web-scraper常见报错排查与运行避坑 (Troubleshooting)FAQ
针对 智能网页抓取 在 Cursor、Claude Code 中的常见连接错误与解决办法
在 Cursor / Claude Code 中配置 Smart Web Scraper 提示 connection closed 或 exit code 1?
通常由本地运行时环境缺失或命令路径未被 IDE 继承引起。排查步骤: 1. 确认已安装 Node.js 18+(支持 npx)或 Python 3.10+(支持 uvx); 2. 尝试在终端运行 which npx 或 which uvx,把配置文件中的 "command" 字段改为完整绝对路径; 3. 修改 mcp.json 后,必须完全重载或重启客户端窗口。
# 终端测试命令是否存在: which npx node -v
提示 spawn npx ENOENT 或 command not found?
这是因为编辑器后台进程未加载完整的终端环境变量(PATH)。解决方案:在全局安装该包(如 npm install -g 包名),或在配置文件中将 command 设置为系统的实际路径(如 Windows 下的 C:\Program Files\nodejs\npx.cmd,Mac 下的 /usr/local/bin/npx)。
调用工具时响应超时或网络下载依赖失败?
国内环境下首次执行 npx 或拉取依赖时可能因网络受限而超时。建议将 npm 镜像源切换为国内高速镜像(npm config set registry https://registry.npmmirror.com),或在系统级开启开发代理工具。
在对话中描述任务,Agent 没有自动调用 Smart Web Scraper 规则?
请检查 SKILL.md 是否位于当前项目的 .cursor/skills/Smart Web Scraper/SKILL.md(Cursor)或 ~/.claude/skills/Smart Web Scraper/SKILL.md(Claude Code)。在输入提问时,可以显式提示 AI “请使用 Smart Web Scraper 规范来执行”,以提高智能体的规则匹配权重。
免安装模拟调用 (Playground)
仿真环境Smart Web Scraper 规则注入与 Agent 行为仿真 · 无需配置本地环境,直接预览调用参数与返回格式
{
"skill": "Smart Web Scraper",
"rulePath": ".cursor/skills/smart-web-scraper/SKILL.md",
"userGoal": "请使用 Smart Web Scraper 的方法与标准帮我完成当前任务",
"client": "Cursor / Claude Code"
}点击上方「模拟运行」按钮
查看该工具在 Agent 内部的返回数据格式
选型与决策建议(为什么选它?)
帮助你快速判断该资源是否契合当前项目,避免盲目折腾
- 新闻/文档采集
- 竞品页面监控
- 构建 RAG 语料
- 登录后敏感数据爬取
- 违反 robots.txt 或站点 ToS 的场景
Firecrawl / Fetch MCP + 向量库 → 自动入库与检索
Skill 实战教程:从安装到看见效果
按完整实例走一遍(含期望效果与对比验收)。装完本页资源后,用教程里的提示词核对是否真正生效。
Agent Skill 是带 SKILL.md 的指令包。安装后,AI 会根据 description 在匹配任务时自动加载,无需每次手动粘贴提示词。
使用方式
安装完成后,在对话中直接描述你的任务(或提及技能名称)。Agent 会先读取 SKILL.md 的 description 判断是否启用,再按其中的步骤执行。可用 /skills(Claude Code)或在设置中查看已加载的 Skills。
相关资源
AI 保险顾问(中国大陆)
v2.0.154
io.clawhub.mnetfairy/ai-insurance-advisor
中国大陆保险顾问。本 skill 仅覆盖 6 项实际实现的能力:保险需求分析(needs_analyzer.py)、产品对比(premium_calculator.py + 本地 products.json)、保费计算(premium_calculator.py)、方案设计(plan_designer.py)、保险知识问答(insurance-knowledge.md)、合规要点提示(compliance.md)。不提供核保预审、理赔代办、朋友圈/营销文案生成、培训话术、代理人展业工具等能力——这些场景请转人工或调用专业服务。
agent-bom GCP 资产发现
v0.108.1
io.clawhub.msaad00/agent-bom-discover-gcp
从运维环境中发现托管于 GCP 的 AI 智能体及 MCP 相关资产,输出规范 agent-bom 清单 JSON,并在不向 agent-bom 提供长期 GCP 凭据的前提下完成扫描。当用户要求将 Vertex AI、Cloud Run、Cloud Functions、GKE 或智能体化 GCP 基础设施盘点为规范清单时使用。
agent-bom AWS 资产发现
v0.108.1
io.clawhub.msaad00/agent-bom-discover-aws
从运维环境中发现托管于 AWS 的 AI 智能体及 MCP 相关资产,输出规范 agent-bom 清单 JSON,并在不向 agent-bom 提供长期云凭据的前提下完成扫描。当用户要求将 AWS Bedrock、ECS、SageMaker、Lambda、EKS、Step Functions、EC2 或智能体化 AWS 基础设施盘点为规范清单时使用。是否将该清单传给 agent-bom 由运维者自主选择。
agent-bom 清单接入
v0.108.1
io.clawhub.msaad00/agent-bom-ingest
校验并接入运维者从 AWS、Azure、GCP、Snowflake、CMDB 或终端采集器推送的 agent-bom 清单 JSON。当用户已有规范清单 JSON、希望在本地产出发现结果、图谱、策略、溯源或面向审计者的导出,而无需向 agent-bom 提供直接云凭据时使用。
agent-bom Snowflake 资产发现
v0.108.1
io.clawhub.msaad00/agent-bom-discover-snowflake
从运维环境中发现 Snowflake Cortex、Snowpark、notebook、Streamlit、MCP 与 AI 可观测性资产,输出规范 agent-bom 清单 JSON,并在不向 agent-bom 提供长期 Snowflake 凭据的前提下完成扫描。当用户要求将 Snowflake AI 或 Cortex 基础设施盘点为规范清单时使用。
agent-bom Azure 资产发现
v0.108.1
io.clawhub.msaad00/agent-bom-discover-azure
从运维环境中发现托管于 Azure 的 AI 智能体及 MCP 相关资产,输出规范 agent-bom 清单 JSON,并在不向 agent-bom 提供长期 Azure 凭据的前提下完成扫描。当用户要求将 Azure OpenAI、Container Apps、AKS、Functions、ML 或智能体化 Azure 基础设施盘点为规范清单时使用。
常搭配使用
智能终端
v1.2.40
io.github.pungggi/smart-terminal
提供 MCP PTY 服务,让 AI 智能体获得真正的交互式终端访问。
Transport & travel
v1.0.0
si.fourzerotwo/transport
Airports, runways and frequencies worldwide, tides, UK road collisions and London transport.
Environment & energy
v1.0.0
si.fourzerotwo/environment
UK river levels and rainfall, bathing waters, flood warnings, weather.
Health & medicines
v1.0.0
si.fourzerotwo/health
Clinical trials, RxNorm drug lookups, FDA drug and device data, PubMed and NHS organisations.
继续逛 AgentHub
大多数人安装前还会对比同类工具或看场景方案——下面这些能帮你少走弯路。
收录徽章:把 AgentHub 挂到你的官网
复制下面任意一段代码到项目主页、官网或 GitHub README。徽章是 SVG 热链,无需上传文件,链接指向本页,访客可由此直接找到安装方式。
<a href="https://myagenthub.cn/p/io.clawhub.mariusfit/smart-web-scraper" title="AgentHub 已收录:智能网页抓取" target="_blank" rel="noopener">
<img src="https://myagenthub.cn/badge/io.clawhub.mariusfit/smart-web-scraper" alt="AgentHub 已收录:智能网页抓取" height="20" style="border:0"/>
</a>[](https://myagenthub.cn/p/io.clawhub.mariusfit/smart-web-scraper)徽章由 /badge/<资源ID> 动态生成,名称与收录状态变化后自动更新;请保留链接指向,它是收录来源的判定依据。
统一 Manifest
{
"id": "io.clawhub.mariusfit/smart-web-scraper",
"type": "skill",
"version": "1.0.0",
"displayName": "Smart Web Scraper",
"description": "Extract structured data from any web page. Supports CSS selectors, auto-detection of tables and lists, JSON/CSV output formats. Use when asked to scrape a we...",
"author": {
"name": "mariusfit",
"url": "https://clawhub.ai/mariusfit"
},
"homepage": "https://clawhub.ai/mariusfit/smart-web-scraper",
"distribution": {
"packages": [
{
"registryType": "source",
"identifier": "mariusfit/smart-web-scraper",
"version": "1.0.0",
"runtimeHint": "clawhub install"
}
],
"remotes": []
},
"dependencies": [],
"installTargets": [
"openclaw",
"claude-code",
"claude-desktop",
"cursor",
"codex",
"vscode"
],
"keywords": [
"downloads:3634",
"stars:0",
"installs:117",
"CSV",
"Json"
],
"provenance": {
"origin": "clawhub",
"originalId": "mariusfit/smart-web-scraper",
"originalUrl": "https://clawhub.ai/mariusfit/smart-web-scraper",
"isOfficial": false,
"status": "active"
}
}