smallnest/goclaw/crawl4ai-skill
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when users need to scrape websites, extract structured data, handle JavaScript-heavy pages, crawl multiple URLs, or build automated web data pipelines. Includes optimized extraction patterns with schema generation for efficient, LLM-free extraction.
Install
npx vskill@latest install smallnest/goclaw/crawl4ai-skillSKILL.md
Crawl4AI
Overview
Crawl4AI provides comprehensive web crawling and data extraction capabilities. This skill supports both CLI (recommended for quick tasks) and Python SDK (for programmatic control).
Choose your interface:
Quick Start
Installation
CLI (Recommended)
Python SDK
For SDK configuration details: SDK Guide - Configuration (lines 61-150)
Core Concepts
Configuration Layers
Both CLI and SDK use the same underlying configuration:
| Concept | CLI | SDK | |
|---|---|---|---|
| Browser settings | -B browser.yml or -b "param=value" | BrowserConfig(...) | |
| Crawl settings | -C crawler.yml or -c "param=value" | CrawlerRunConfig(...) | |
| Extraction | -e extract.yml -s schema.json | extraction_strategy=... | |
| Content filter | -f filter.yml | markdown_generator=... |
Key Parameters
Browser Configuration:
headless: Run with/without GUIviewport_width/height: Browser dimensionsuser_agent: Custom user agentproxy_config: Proxy settings
Crawler Configuration:
page_timeout: Max page load time (ms)wait_for: CSS selector or JS condition to wait forcache_mode: bypass, enabled, disabledjs_code: JavaScript to executecss_selector: Focus on specific element
For complete parameters: CLI Config | SDK Config
Output Content
Every crawl returns:
- markdown - Clean, formatted markdown
- html - Raw HTML
- links - Internal and external links discovered
- media - Images, videos, audio found
- extracted_content - Structured data (if extraction configured)
Markdown Generation (Primary Use Case)
Crawl4AI excels at generating clean, well-formatted markdown:
CLI
Filter configuration:
Python SDK
For content filters: Content Processing (lines 2481-3101)
Data Extraction
1. Schema-Based CSS Extraction (Most Efficient)
No LLM required - fast, deterministic, cost-free.
CLI:
Schema format:
2. LLM-Based Extraction
For complex or irregular content:
CLI:
For extraction details: Extraction Strategies (lines 4522-5429)
Advanced Patterns
Dynamic Content (JavaScript-Heavy Sites)
CLI:
Crawler config:
Multi-URL Processing
CLI (sequential):
Python SDK (concurrent):
For batch processing: arun_many() Reference (lines 1057-1224)
Session & Authentication
CLI:
For session management: Advanced Features (lines 5429-5940)
Anti-Detection & Proxies
CLI:
Common Use Cases
Google Search Scraping
The script extracts:
- Search result titles
- URLs (cleaned, removes Google redirects)
- Descriptions/snippets
- Site names
Output is saved to google_search_results.json and printed to stdout.
Documentation to Markdown
E-commerce Product Monitoring
News Aggregation
Interactive Q&A
Resources
Provided Scripts
- scripts/google_search.py - Google search scraper with JSON output
- scripts/extraction_pipeline.py - Schema generation and extraction
- scripts/basic_crawler.py - Simple markdown extraction
- scripts/batch_crawler.py - Multi-URL processing
Reference Documentation
| Document | Purpose | |
|---|---|---|
| CLI Guide | Command-line interface reference | |
| SDK Guide | Python SDK quick reference | |
| Complete SDK Reference | Full API documentation (5900+ lines) |
Best Practices
- Start with CLI for quick tasks, SDK for automation
- Use schema-based extraction - 10-100x more efficient than LLM
- Enable caching during development -
--bypass-cacheonly when needed - Set appropriate timeouts - 30s normal, 60s+ for JS-heavy sites
- Use content filters for cleaner, focused markdown
- Respect rate limits - Add delays between requests
Troubleshooting
JavaScript Not Loading
Bot Detection Issues
Content Not Extracted
Session Issues
For comprehensive API documentation, see Complete SDK Reference.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/builtin_skills/crawl4ai-skill/SKILL.md
Popularity
- Repository stars
- 599
- Repository forks
- 119
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/smallnest/goclaw/crawl4ai-skill)