scraperapi-scraper-builderlisted
Install: claude install-skill scraperapi/scraperapi-skills
# ScraperAPI Scraper Builder
Build production-quality scrapers using ScraperAPI. Work through four phases: gather requirements, probe the target site, make architecture decisions, then generate a complete runnable script.
## Phase 1 — Gather Requirements
Before writing code, collect the following. Pull from the user's prompt; ask only what is missing.
| Info | Default if not specified |
|------|--------------------------|
| Target URL or website | Required — ask if missing |
| Data fields to extract | Ask if vague ("product info" → which fields exactly?) |
| Volume | Infer: single URL / paginated / bulk list of URLs |
| Language | Ask if not clear from context; Python is a reasonable default |
| Output format | stdout JSON |
| Geo-targeting needed? | Infer from site type; confirm for e-commerce pricing |
---
## Phase 2 — Site Reconnaissance
**Before making any architecture decisions, fetch 1–2 sample pages from the target site using ScraperAPI** to observe actual behavior. This replaces guesswork with evidence and costs at most 2 credits.
### What to fetch
Fetch at most two pages:
1. **A listing or category page** (the main target) — e.g., a product grid, search results, or article index
2. **A detail page** (only if the user needs data from individual items) — e.g., a single product, article, or profile
Always start with a **standard request** (no `render`, no `premium`) — the cheapest probe:
```
GET https://api.scraperapi.com/?api_key=<SCRAPERAPI_API_KEY>&url=<ta