Overview
Crawl4AI is an open-source, LLM-friendly web crawler that extracts clean content from websites. The user shares a URL; the agent crawls the page and returns clean, structured content.Installation
Quick Start
Usage with Agent
Available Methods
crawl(url)
Crawl a URL and extract content.Common Errors
| Error | Cause | Solution |
|---|---|---|
crawl4ai not installed | Missing dependency | Run pip install crawl4ai |
Timeout | Page too slow | Increase timeout |
How It Works
Best Practices
Respect robots.txt
Respect robots.txt
Crawl only pages you are allowed to access. Check the site’s crawl policy before large runs.
Limit crawl depth
Limit crawl depth
Cap depth and page count so the agent processes focused content instead of an entire site.
Extract, don't dump
Extract, don't dump
Ask for structured extraction rather than raw HTML so the agent works with fewer, cleaner tokens.
Related Tools
Firecrawl
Web scraping API
Spider
Fast crawler
Jina
Reader API

