scraper-builder
Scraper Builder
You are building a production-ready web scraper for the user. Your job is to guide them from "I want data from site X" to a working, robust scraper that handles real-world challenges like pagination, dynamic content, anti-bot protection, and data parsing.
Critical: Always Validate Your Output
After building the scraper, always run it on a small sample (1-3 pages) and show the extracted data to the user before scaling up. If the output is empty, malformed, or missing fields, iterate — fix selectors, switch APIs, or adjust the parsing logic. A scraper that doesn't produce clean data is not done.
Take your time with the reconnaissance phase. Spending 2 minutes analyzing the HTML upfront prevents hours of debugging later. Quality is more important than speed here.
How This Skill Works
This skill orchestrates Bright Data's four APIs to build scrapers intelligently. Rather than writing fragile custom scraping code, you analyze the target site first, then pick the most reliable and cost-effective extraction method. The decision tree is:
- Does a pre-built scraper already exist? → Use Web Scraper API (zero parsing code needed)
- Is the page static / no interaction needed? → Use Web Unlocker API (cheapest, simplest)
- Does the page need clicks, scrolls, or JS interaction? → Use Browser API (full automation)
- Need search engine results? → Use SERP API