360 Secure SkillHub
360 安全技能中心

Scraper

面向公开或用户授权网页的抓取与清洗 Skill:用 Python 脚本按 URL 下载页面、去除样板内容并提取可读纯文本,把结果保存到本地目录并记录任务历史,便于后续摘要或分析。不提供绕过登录、付费墙、验证码或访问控制的能力,不处理凭据。

分类:效率
agistack
agistack
热度 50.89
最近更新 2026-05-11 17:30:52

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add agistack/scraper
兼容性
OpenClaw 专属
联网要求
需要联网
数据出网
数据不出本机
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