360 Secure SkillHub
360 安全技能中心

Scraper

这是一款安全的网页内容提取工具,仅支持公开或用户授权的网页。核心功能包括抓取页面内容、提取可读文本、去除冗余代码,将清洗后的内容本地存储,还可查看历史抓取任务。典型用于用户需要收集、整理网页内容以进行总结或分析的场景。输入为目标网页URL,输出存储在本地指定目录,严格遵循安全边界,不得绕过访问限制。

agistack
agistack
热度 91.61
最近更新 2026-05-11 17:30:52
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 文件转换

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add scraper
Metadata
name
scraper
description
Structured extraction and cleanup for public, user-authorized web pages. Use when the user wants to collect, clean, summarize, or transform content from accessible pages into reusable text or data. Do not use to bypass logins, paywalls, captchas, robots restrictions, or access controls. Local-only output.

Scraper

Turn messy public pages into clean, reusable data.

Core Purpose

Scraper is a safe extraction skill for public, user-authorized pages. It helps the agent:

  • fetch page content from a URL
  • extract readable text
  • strip boilerplate where possible
  • save clean output locally
  • prepare content for later summarization or analysis

Safety Boundaries

  • Only use on public or user-authorized pages
  • Do not bypass logins, paywalls, captchas, robots restrictions, or rate limits
  • Do not request or store credentials
  • Do not perform stealth scraping, account creation, or identity evasion
  • Save outputs locally only

Runtime Requirements

  • Python 3 must be available as python3
  • No external packages required

Local Storage

All outputs are stored locally under:

  • ~/.openclaw/workspace/memory/scraper/jobs.json
  • ~/.openclaw/workspace/memory/scraper/output/

Key Workflows

  • Capture a page: fetch_page.py --url "https://example.com"
  • Extract readable text: extract_text.py --url "https://example.com"
  • Save cleaned content: save_output.py --url "https://example.com" --title "Example"
  • List prior jobs: list_jobs.py

Scripts

Script Purpose
init_storage.py Initialize scraper storage
fetch_page.py Download a page with standard headers
extract_text.py Convert HTML into cleaned plain text
save_output.py Save extracted output and register a job
list_jobs.py Show past scraping jobs