Prerequisites
Before you begin, ensure you have:- Python 3.9 or higher
- Git
- Terminal access
scrapai works on Linux, macOS, and Windows. The setup process is identical across all platforms.
Installation
1
Clone the repository
2
Run setup
3
Verify installation
Your First Scraper
Let’s import and run a pre-built spider for BBC News.1
Import the spider
scrapai includes example spiders in the
templates/ directory. Let’s import the BBC News spider:2
Run a test crawl
Run the spider in test mode (limits to 5 items):You’ll see Scrapy crawling in action:
3
View the results
Inspect the scraped data:
4
Export the data
Export to your preferred format:Exports are saved to the
data/ directory with timestamps.Explore More Examples
scrapai includes several ready-to-use spider templates:E-Commerce
Forums
Cloudflare-Protected
Real Estate
Using with AI Agents
scrapai is designed to work with AI coding agents like Claude Code. Instead of manually writing JSON configs, you describe what you want in plain English:Production Crawling
Run a full crawl by omitting--limit:
Detached crawls require Pueue. If it isn’t installed, scrapai stops and tells you to install it (or test with
--limit N).crawl-status:
Next Steps
Installation Guide
Detailed installation instructions for all platforms
CLI Reference
Complete command reference
Configuration
Configure proxies, databases, and S3 storage