360 Secure SkillHub
360 安全技能中心

WebClip Save & Summarize Web Pages

这是一款网页抓取与处理工具,无需浏览器即可运行。核心功能包含自动剥离网页广告、导航等冗余内容,提取主内容并转为纯文本或格式化Markdown,支持批量抓取、缓存及离线存档,还可调用大模型生成指定长度的摘要。适合学术研究、AI助手上下文构建等场景,输入为网页URL,输出有纯文本、Markdown、摘要三种形式,可通过代码调用实现单页或批量处理。

theshadowrose
theshadowrose
热度 87.19
最近更新 2026-05-11 17:30:43
分类:效率依赖:代码执行 / 读写文件应用场景:摘要总结 / 研究 / 文件转换

安装技能

复制下面的话术发给你的 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