360 Secure SkillHub
360 安全技能中心

Smart Scraper

这是一个基于 Playwright 的命令行网页抓取工具,能自动识别列表、文章或表格结构,解析价格、日期和链接,支持滚动加载,并将结果以 JSON、CSV 或 Markdown 输出。

yadanzheng68-cmyk
yadanzheng68-cmyk
热度 53.46
最近更新 2026-05-11 17:33:24
分类:搜索依赖:代码执行 / 联网浏览搜索应用场景:数据处理 / 研究 / 自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add smart-scraper
Metadata
name
smart-scraper
description
AI-powered web scraper with intelligent structure recognition. Extracts lists, articles, and tables from any website with automatic type detection.
metadata
{"openclaw":{"emoji":"🕷️","requires":{"bins":["node","npm"]},"install":[{"kind":"node","package":"playwright","bins":["npx"]}]}}

Smart Scraper

Intelligent web scraping that understands page structure.

Features

  • Auto-detection: Automatically identifies list, article, or table layouts
  • Smart extraction: Parses prices, dates, URLs from unstructured text
  • Multiple formats: Output as JSON, CSV, or Markdown
  • Scroll support: Handles infinite scroll pages

Usage

# Extract product listings
smart-scraper --url "https://example.com/products" --type list

# Extract article content
smart-scraper --url "https://example.com/article" --type article --format markdown

# Extract table data
smart-scraper --url "https://example.com/data" --type table --format csv

Options

Option Description Default
--url, -u Target URL (required) -
--type, -t Extraction type: list, article, table, auto auto
--format, -f Output format: json, csv, markdown json
--max, -m Maximum items to extract 100
--scroll Enable auto-scroll for lazy-loaded content false

Examples

Extract Hacker News

smart-scraper -u https://news.ycombinator.com -t list -m 10

Save article as Markdown

smart-scraper -u https://blog.example.com/post -t article -f markdown > article.md

Export table to CSV

smart-scraper -u https://example.com/prices -t table -f csv > prices.csv