Skills DirectorySearch all skills ↗

AI agent skill · by @AIDotNet

Web Scraper

使用CSS选择器从网页提取数据,支持分页、限速和多种输出格式。

Archived 2026-10-23 · Source updated 2026-01-28 · License: MIT. Check the original repository for the latest version.

SKILL.md instructions

# Web Scraper Tool

## Description
Extract structured data from web pages using CSS selectors with rate limiting and pagination support.

## Trigger
- `/scrape` command
- User requests web data extraction
- User needs to parse HTML

## Usage

```bash
# Scrape single page
python scripts/web_scraper.py --url "https://example.com" --selector ".item" --output data.json

# Scrape with multiple selectors
python scripts/web_scraper.py --url "https://example.com" --selectors "title:.title,price:.price,link:a@href"

# Scrape multiple pages
python scripts/web_scraper.py --urls urls.txt --selector ".product" --output products.json --delay 2
```

## Tags
`scraping`, `web`, `html`, `data-extraction`, `automation`

## Compatibility
- Codex: ✅
- Claude Code: ✅

Related skills