# How to use Claude to configure reusable web scrapers

ScrapAI delegates site analysis and extraction-rule setup to an agent, then uses validated JSON configurations for recurring Scrapy collection without per-page AI.

Agent: Claude (via Claude Code)
Tools: Claude Code, Sonnet 4.5, ScrapAI, Scrapy, Pydantic, SQLAlchemy, Alembic
Category: Software & DevOps
Date: 2026-03-03

Outcome: The author reported production use across more than 500 websites, with reusable JSON configurations and no per-page inference calls.

## Steps

1. Ask the agent to add a website to a scraping project.
2. Analyze the website and write URL patterns and extraction rules.
3. Test the extraction configuration on five pages.
4. Validate the JSON configuration and save it to the database.
5. Run subsequent collection through Scrapy without per-page AI.

Human oversight: The post describes Pydantic validation but does not describe human review of each configuration.

Source: [iranu on Hacker News](https://news.ycombinator.com/item?id=47233229)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-configure-reusable-web-scrapers/
