crawl4ai

Crawl JavaScript-heavy websites and extract structured data into Markdown.

5|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/basher83/agent-auditor --skill crawl4ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crawl4ai
Source: https://github.com/basher83/agent-auditor/tree/main/.claude/skills/crawl4ai
Command: npx skills add https://github.com/basher83/agent-auditor --skill crawl4ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires crawl4ai, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Web scraping is often complex, brittle, and time-consuming, especially when dealing with dynamic JavaScript-heavy pages or needing structured data without incurring high LLM costs. This Skill simplifies web data acquisition, allowing you to automate complex crawling and extraction tasks efficiently.

Core Features & Use Cases

  • Dynamic Web Scraping: Seamlessly handles JavaScript-heavy pages, virtual scrolling, and anti-bot measures to ensure comprehensive and reliable data capture.
  • Optimized Data Extraction: Supports highly efficient LLM-free schema-based (CSS/XPath/Regex) and flexible LLM-based structured data extraction, including schema generation.
  • Markdown & Batch Processing: Converts web content into clean, LLM-ready Markdown and efficiently crawls multiple URLs concurrently with adaptive resource management.

Quick Start

Crawl the website 'https://example.com' and extract its main content as markdown, saving it to 'example.md'.

Frequently Asked Questions about crawl4ai

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract structured data from JavaScript-heavy websites?

Web scraping JavaScript-heavy sites requires handling dynamic content rendering. crawl4ai automates this by executing JavaScript, capturing rendered content, and extracting structured data via CSS selectors, XPath, regex patterns, or LLM-based schema extraction—all without requiring manual browser automation setup.

Can I crawl multiple URLs at once and convert them to markdown?

Yes, crawl4ai supports batch processing of multiple URLs concurrently with adaptive resource management. It converts web content into clean, LLM-ready markdown output, allowing you to process multiple pages efficiently in a single operation.

What's the difference between CSS-based and LLM-based data extraction?

CSS/XPath/regex extraction uses selectors to target specific page elements with no LLM cost, while LLM-based extraction intelligently interprets content semantically and generates schemas automatically. Choose CSS extraction for consistent, rule-based patterns; use LLM extraction when content structure varies or schema generation is needed.

Do I need to write custom code for anti-bot measures and dynamic scrolling?

No, crawl4ai handles anti-bot measures and virtual scrolling automatically. Configurable browser settings (BrowserConfig) and crawl parameters (CrawlerRunConfig) let you customize behavior without writing detection or scrolling logic yourself.

Can I use web scraping without incurring LLM API costs?

Yes, crawl4ai is designed as LLM-free for extraction. Use schema-driven CSS/XPath/regex extraction to structure data without calling external LLM services. LLM-based options are available only when you explicitly enable schema generation or structured extraction.

What output formats does crawl4ai produce?

crawl4ai produces markdown-ready content for LLM processing and exportable structured data in JSON format. Extraction results can be saved directly or piped into downstream analysis and integration workflows.