Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

webfetch

v0.1.1

网页内容抓取工具。使用 webfetch CLI 抓取网页内容并转换为 Markdown、文本或 HTML 格式。触发场景:用户要求抓取网页、获取网页内容、网页转 Markdown、网页转文本、下载网页。

1· 154·0 current·0 all-time
by一个有毅力的吃货@lyhue1991

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for lyhue1991/webfetch.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "webfetch" (lyhue1991/webfetch) from ClawHub.
Skill page: https://clawhub.ai/lyhue1991/webfetch
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install webfetch

ClawHub CLI

Package manager switcher

npx clawhub@latest install webfetch
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name/description match the behavior: the SKILL.md only documents invoking a webfetch CLI to fetch and format web pages. Required resources (proxy env vars, optionally installing webfetch) are coherent with that purpose.
Instruction Scope
Runtime instructions are limited to running the webfetch binary, checking installation (command -v), optionally installing via npm, and simple network/debug commands (curl, printenv for proxy vars). They do not request unrelated files or secrets. Note: the doc explicitly recommends the --insecure flag to skip TLS verification — this is functional but weakens security if used.
Install Mechanism
There is no formal install spec in the skill bundle, but SKILL.md suggests 'npm install -g @lyhue1991/webfetch'. Installing a global npm package is a reasonable way to obtain the CLI, but it pulls code from an individual npm namespace (not a known vendor), which is a moderate risk because it will execute/install remote code on the host.
Credentials
The instructions only reference standard proxy environment variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY) and recommend setting them when needed. No unrelated credentials or sensitive env vars are requested.
Persistence & Privilege
The skill does not request always-on presence or elevated platform privileges. However, following the doc may lead a user to perform a global npm install, which creates a persistent binary on the system; that's expected for a CLI wrapper but is a persistence action the user should consciously approve.
Assessment
This skill is coherent with its goal of invoking a webfetch CLI. Before installing/using it: (1) prefer to inspect the npm package (@lyhue1991/webfetch) and its repository/readme to confirm the publisher and review code or npm audit results; (2) avoid running npm install -g unless you trust the package—consider installing locally or in a container/VM; (3) avoid using --insecure unless absolutely necessary for testing (it disables TLS checks); and (4) when printing environment variables, restrict checks to proxy vars as shown rather than running printenv without arguments. If you want higher assurance, ask the author/source for a verified homepage or a signed release.

Like a lobster shell, security has layers — review code before you run it.

latestvk97b4rbvff96rd1cz6tbzfn59s83ac8h
154downloads
1stars
2versions
Updated 1mo ago
v0.1.1
MIT-0

webfetch

封装 webfetch 命令行工具,用于抓取网页内容并转换为多种格式。

核心能力

  1. 网页抓取 - 获取指定 URL 的网页内容
  2. 格式转换 - 支持 Markdown(默认)、纯文本、原始 HTML 三种输出格式
  3. 代理支持 - 自动读取环境变量代理配置,支持手动指定代理
  4. 文件保存 - 支持将抓取内容保存到指定文件

工作流程

🌐 抓取网页内容

当用户表达抓取网页、获取网页内容、网页转 Markdown 意图时,执行如下命令:

webfetch "https://example.com"

视需要也可以使用如下常见用法:

webfetch "https://example.com"                    # 默认输出 Markdown
webfetch "https://example.com" -f text            # 输出纯文本
webfetch "https://example.com" -f html            # 输出原始 HTML
webfetch "https://example.com" -o article.md      # 保存到文件
webfetch "https://example.com" -q > output.md     # 静默模式,适合管道

🔧 代理配置

当网络环境需要代理时,有两种方式:

方式一:环境变量(推荐)

export HTTPS_PROXY=http://proxy:8080
webfetch "https://example.com"

方式二:命令行参数

webfetch "https://example.com" --proxy http://proxy:8080

🔓 跳过证书验证

当遇到 TLS 证书问题(如自签名证书)时:

webfetch "https://example.com" --insecure

⏱️ 超时设置

当目标网站响应较慢时:

webfetch "https://example.com" --timeout 60

🛠️ 错误排查

如果执行失败,按照以下步骤排查:

1. 检查安装 → 2. 检查网络 → 3. 检查代理配置

Step 1: 检查是否安装 webfetch

command -v webfetch

如果未安装,执行:

npm install -g @lyhue1991/webfetch

Step 2: 检查网络连接

curl -I https://example.com

Step 3: 检查代理配置

printenv HTTP_PROXY HTTPS_PROXY

如果需要代理但未配置:

webfetch "https://example.com" --proxy http://proxy:8080

📄 不同输出格式

Markdown 格式(默认)

webfetch "https://mp.weixin.qq.com/s/xxx" -o article.md

纯文本格式

webfetch "https://example.com" -f text

原始 HTML

webfetch "https://example.com" -f html

参数说明

参数说明
<url>目标 URL,必填
-f, --format <format>输出格式:markdown(默认)、text、html
-t, --timeout <seconds>超时时间(秒),最大 120,默认 30
-o, --output <file>保存到指定文件
-q, --quiet静默模式,仅输出内容
--proxy <url>代理服务器地址
--insecure跳过 TLS 证书验证

环境变量

变量说明
HTTP_PROXYHTTP 请求代理
HTTPS_PROXYHTTPS 请求代理
NO_PROXY跳过代理的主机列表

注意事项

  1. 优先用 Markdown - Markdown 格式保留结构信息,适合阅读和后续处理
  2. 代理证书问题 - 使用代理时如遇证书错误,添加 --insecure 参数
  3. 响应大小限制 - 最大支持 5MB 响应内容
  4. JavaScript 渲染 - 不支持 JavaScript 渲染,仅抓取静态页面

退出码

代码说明
0成功
1用户错误(无效 URL、参数错误)
2网络错误(超时、DNS 解析失败)
3服务器错误(4xx、5xx 响应)

快速参考

# 查看帮助
webfetch --help

# 查看版本
webfetch --version

# 基础抓取
webfetch "https://example.com"

# 输出纯文本
webfetch "https://example.com" -f text

# 保存到文件
webfetch "https://example.com" -o output.md

# 使用代理
webfetch "https://example.com" --proxy http://proxy:8080

# 跳过证书验证
webfetch "https://example.com" --insecure

# 自定义超时
webfetch "https://example.com" --timeout 60

# 静默模式(适合管道)
webfetch "https://example.com" -q > output.md

Comments

Loading comments...