360 Secure SkillHub
360 安全技能中心

WebClip Save & Summarize Web Pages

以 Node.js 模块形式抓取给定网址的网页,剥离脚本、样式、导航和广告,提取正文并转换为保留标题、列表、链接与代码块的 Markdown,同时输出文本、摘要与元数据,支持批量抓取、缓存与本地归档,定位为研究辅助的基础组件。

theshadowrose
theshadowrose
热度 87.16
最近更新 2026-05-11 17:30:43
分类:效率依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:摘要总结 / 文件转换 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add web-clip
Metadata
name
WebClip Save & Summarize Web Pages
description
Fetch web pages, strip to clean readable text, summarize into agent-ready markdown. Research assistant foundation. No browser required.
author
@TheShadowRose
version
1.0.0
tags
["web-clip"]
license
MIT

WebClip Save & Summarize Web Pages

Fetch web pages, strip to clean readable text, summarize into agent-ready markdown. Research assistant foundation. No browser required.


Fetch any web page, strip the junk, extract clean readable text, and optionally summarize it. Perfect for research tasks.

Usage

const { WebClip } = require('./src/web-clip');
const clip = new WebClip();

// Fetch and clean
const page = await clip.fetch('https://example.com/article');
console.log(page.title);
console.log(page.text);      // Clean text, no HTML
console.log(page.markdown);  // Formatted markdown

// Fetch and summarize
const summary = await clip.summarize('https://example.com/article', {
  maxLength: 200,
  model: 'llama3.1:8b'
});

Features

  • HTML stripping — removes scripts, styles, nav, ads, footers
  • Readability extraction — finds main content automatically
  • Markdown conversion — preserves headings, lists, links, code blocks
  • Batch fetching — multiple URLs in parallel
  • Caching — don't re-fetch pages you've already clipped
  • Offline archive — save pages as local markdown files

Output Formats

Format Use Case
.text Raw clean text for agent context
.markdown Formatted for reading or storage
.summary Condensed version (requires model)
.metadata Title, author, date, word count

Zero Dependencies

Uses only Node.js built-in https module. No Puppeteer, no headless browser.

⚠️ Disclaimer

This software is provided "AS IS", without warranty of any kind, express or implied.

USE AT YOUR OWN RISK.

  • The author(s) are NOT liable for any damages, losses, or consequences arising from the use or misuse of this software — including but not limited to financial loss, data loss, security breaches, business interruption, or any indirect/consequential damages.
  • This software does NOT constitute financial, legal, trading, or professional advice.
  • Users are solely responsible for evaluating whether this software is suitable for their use case, environment, and risk tolerance.
  • No guarantee is made regarding accuracy, reliability, completeness, or fitness for any particular purpose.
  • The author(s) are not responsible for how third parties use, modify, or distribute this software after purchase.

By downloading, installing, or using this software, you acknowledge that you have read this disclaimer and agree to use the software entirely at your own risk.

DATA DISCLAIMER: This software processes and stores data locally on your system. The author(s) are not responsible for data loss, corruption, or unauthorized access resulting from software bugs, system failures, or user error. Always maintain independent backups of important data. This software does not transmit data externally unless explicitly configured by the user.


Support & Links

🐛 Bug Reports TheShadowyRose@proton.me
☕ Ko-fi ko-fi.com/theshadowrose
🛒 Gumroad shadowyrose.gumroad.com
🐦 Twitter @TheShadowyRose
🐙 GitHub github.com/TheShadowRose
🧠 PromptBase promptbase.com/profile/shadowrose

Built with OpenClaw — thank you for making this possible.


🛠️ Need something custom? Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. → Hire me on Fiverr