Token导航 LogoToken导航TokenDH.com
效率操作浏览器clawhub未标认证来源可访问clear审计提醒

webpage-export网页导出

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

6,750

周安装

287

GitHub Stars

公开资料未说明

下载量

2,365
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:webpage-export(网页导出)
来源仓库:https://github.com/lilw-yezi/webpage-export
安装命令:
openclaw skills install webpage-export
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install webpage-export

简介

webpage-export 用于将网页导出为本地 TXT、DOCX 和 PDF 文件。

  • 包含源元数据和后备提取逻辑,支持困难页面的浏览器辅助恢复。
  • 适用于内容归档和离线阅读,提升信息保存效率。
  • 安装命令为 openclaw skills install webpage-export,需确认文件写入权限。
  • 建议结合来源仓库 README 核验具体用法,注意是否会触发网络请求或命令执行。

SKILL.md

name
webpage-export
description
Export webpages into clean local TXT, DOCX, and PDF files with source metadata, fallback extraction logic, and browser-assisted recovery for difficult pages. Useful for archiving articles, policy pages, WeChat posts, official notices, and other webpages before downstream analysis or sharing.

Webpage Export

Use this skill to turn a webpage URL into local files that downstream agents can archive, send, or reference.

Core workflow

  1. Run scripts/export_webpage.py <url> to create a TXT snapshot first.
  2. Treat TXT as the baseline extracted record.
  3. Add --docx when the user wants a Word document.
  4. Add --pdf when Chrome/Chromium is available and the user wants a PDF.
  5. Keep the generated JSON metadata file; it records extraction quality, paths, warnings, and partial-failure status for downstream agents.
  6. Save outputs to an explicit --outdir when the user provides one; otherwise let the script use its local default export folder under the current working directory.
  7. For accuracy-sensitive work, keep original title, original URL, and extracted source metadata.

Commands

TXT only

python3 scripts/export_webpage.py "<url>"

TXT + DOCX

python3 scripts/export_webpage.py "<url>" --docx

TXT + PDF

python3 scripts/export_webpage.py "<url>" --pdf

TXT + DOCX + PDF with explicit output folder

python3 scripts/export_webpage.py "<url>" --docx --pdf --outdir ./exports/temp

Runtime requirements

  • Requires python3.
  • Requires curl for baseline webpage fetching.
  • PDF export requires Chrome or Chromium.
  • Browser-assisted fallback requires node and the playwright package.
  • DOCX export on macOS requires textutil.

Safety and execution notes

  • This skill fetches arbitrary URLs and may use a headless browser for difficult pages.
  • Browser-assisted fallback executes page JavaScript and should be used only when needed.
  • Prefer explicit --outdir values for production or shared environments.

What the script does

  • Fetch the page with curl
  • Extract title/source/publish-time when available
  • Try multiple body candidates before falling back to a full-page text snapshot
  • Score extraction quality and emit warnings for suspicious/partial results
  • Strip HTML into readable text for a TXT snapshot
  • Convert TXT to DOCX using textutil on macOS
  • Render webpage to PDF using Chrome/Chromium headless printing when available
  • Emit a JSON metadata file with status, paths, word count, quality, and warnings

Format choice

  • Prefer TXT as the baseline extracted record.
  • Prefer DOCX when the user wants an editable or shareable document.
  • Prefer PDF when the user wants page-like rendering or easier direct viewing.
  • For important work, do not treat PDF as the only source of truth.

Chrome/Chromium PDF path

When the user wants PDF, prefer Chrome/Chromium headless printing because it preserves Chinese text and webpage layout better than ad-hoc PDF generation.

Read references/chrome-pdf-guide.md when:

  • you need the exact Chrome PDF logic
  • PDF output is incomplete or suspicious
  • Chrome emits warnings and you need to judge whether the result is still usable
  • you need fallback decisions

Accuracy and fallbacks

Read references/accuracy-and-fallbacks.md when:

  • source accuracy matters
  • webpage metadata is incomplete
  • a field cannot be extracted cleanly
  • you need fallback behavior after a partial extraction

Delivery decisions

Read references/delivery-rules.md when:

  • deciding whether to deliver TXT, DOCX, PDF, or a combination
  • preparing files for downstream agents or user delivery
  • choosing archive placement under the local workspace

Limitations

  • Some highly dynamic or anti-bot pages may extract only partially.
  • PDF depends on Chrome/Chromium being installed.
  • DOCX depends on macOS textutil.
  • If a page is blocked in lightweight fetch mode, use this skill's curl-based extraction path before giving up.

Accuracy rule

Accuracy is the top standard. Keep original title, original URL, and extracted source metadata. If any field is uncertain, mark it as missing instead of guessing.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.31%
按下载量换算2,112

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills