Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

crawl4ai

> ็ผ–็จ‹่ฏญ่จ€
Open source

๐Ÿš€๐Ÿค– Crawl4AI: Open-source LLM Friendly Web Crawler & Scraper. Don't be shy, join here: https://discord.gg/jP8KfhDhyN

75.8K stars0 likes4 views
WebsiteGitHub

About

๐Ÿš€๐Ÿค– Crawl4AI: Open-source LLM Friendly Web Crawler & Scraper. Don't be shy, join here: https://discord.gg/jP8KfhDhyN

๐Ÿš€๐Ÿค– Crawl4AI: Open-source LLM Friendly Web Crawler & Scraper.

Crawl4AI turns the web into clean, LLM ready Markdown for RAG, agents, and data pipelines. Fast, controllable, battle tested by a 50k+ star community.

โœจ Check out latest update v0.9.3

โœจ New in v0.9.3: Security release. Closes five coordinated-disclosure advisories: arbitrary file write, SSRF, and denial of service in the PDF processing path, plus two XSS issues in the Docker Playground. Also ships 33 bug fixes across the Docker server, crawler, and PDF handling. No new features, no breaking changes. Release notes โ†’

โœจ Recent v0.9.2: Maintenance patch release. Fixes a MemoryAdaptiveDispatcher task/page leak when a streaming crawl is closed, Docker Playground "Advanced Config" and Monitor WebSocket auth, Playwright headless-shell packaging, and GPU (ENABLE_GPU=true) Docker builds. Release notes โ†’

โœจ Recent v0.9.0: Major secure-by-default release of the Docker API server. Auth is on by default, the server binds loopback unless given a token, and the request body is now an untrusted trust boundary. Release notes โ†’

โœจ Recent v0.8.7: Security-hardening release. Fixes critical Docker API vulnerabilities (RCE, SSRF, auth bypass, file write, XSS, hardcoded JWT secret), adds DomainMapper, and ships scraping, deep-crawl, and LLM fixes. Release notes โ†’

โœจ Previous v0.8.0: Crash Recovery & Prefetch Mode! Deep crawl crash recovery with resume_state and on_state_change callbacks for long-running crawls. New prefetch=True mode for 5-10x faster URL discovery. Release notes โ†’

โœจ Previous v0.7.8: Stability & Bug Fix Release! 11 bug fixes addressing Docker API issues, LLM extraction improvements, URL handling fixes, and dependency updates. Release notes โ†’

๐Ÿค“ My Personal Story

I grew up on an Amstrad, thanks to my dad, and never stopped building. In grad school I specialized in NLP and built crawlers for research. Thatโ€™s where I learned how much extraction matters.

In 2023, I needed web-to-Markdown. The โ€œopen sourceโ€ option wanted an account, API token, and $16, and still under-delivered. I went turbo anger mode, built Crawl4AI in days, and it went viral. Now itโ€™s the most-starred crawler on GitHub.

I made it open source for availability, anyone can use it without a gate. Now Iโ€™m building the platform for affordability, anyone can run serious crawls without breaking the bank. If that resonates, join in, send feedback, or just crawl something amazing.

Why developers pick Crawl4AI
  • LLM ready output, smart Markdown with headings, tables, code, citation hints
  • Fast in practice, async browser pool, caching, minimal hops
  • Full control, sessions, proxies, cookies, user scripts, hooks
  • Adaptive intelligence, learns site patterns, explores only what matters
  • Deploy anywhere, zero keys, CLI and Docker, cloud friendly

๐Ÿš€ Quick Start

  1. Install Crawl4AI:
bash
# Install the package
pip install -U crawl4ai

# For pre release versions
pip install crawl4ai --pre

# Run post-installation setup
crawl4ai-setup

# Verify your installation
crawl4ai-doctor

If you encounter any browser-related issues, you can install them manually:

bash
python -m playwright install --with-deps chromium
  1. Run a simple web crawl with Python:
python
import asyncio
from crawl4ai import *

async def main():
    async with AsyncWebCrawler() as crawler:
        result = await crawler.arun(
            url="https://www.nbcnews.com/business",
        )
        print(result.markdown)

if __name__ == "__main__":
    asyncio.run(main())
  1. Or use the new command-line interface:
bash
# Basic crawl with markdown output
crwl https://www.nbcnews.com/business -o markdown

# Deep crawl with BFS strategy, max 10 pages
crwl https://docs.crawl4ai.com --deep-crawl bfs --max-pages 10

# Use LLM extraction with a specific question
crwl https://www.example.com/products -q "Extract all product prices"

๐Ÿ’– Support Crawl4AI

๐ŸŽ‰ Sponsorship Program Now Open! After powering 51K+ developers and 1 year of growth, Crawl4AI is launching dedicated support for startups and enterprises. Be among the first 50 Founding Sponsors for permanent recognition in our Hall of Fame.

Crawl4AI is the #1 trending open-source web crawler on GitHub. Your support keeps it independent, innovative, and free for the community โ€” while giving you direct access to premium benefits.

๐Ÿค Sponsorship Tiers

  • ๐ŸŒฑ Believer ($5/mo) โ€” Join the movement for data democratization
  • ๐Ÿš€ Builder ($50/mo) โ€” Priority support & early access to features
  • ๐Ÿ’ผ Growing Team ($500/mo) โ€” Bi-weekly syncs & optimization help
  • ๐Ÿข Data Infrastructure Partner ($2000/mo) โ€” Full partnership with dedicated support
    Custom arrangements available - see SPONSORS.md for details & contact

Why sponsor?
No rate-limited APIs. No lock-in. Build and own your data pipeline with direct guidance from the creator of Crawl4AI.

See All Tiers & Benefits โ†’

โœจ Features

๐Ÿ“ Markdown Generation
  • ๐Ÿงน Clean Markdown: Generates clean, structured Markdown with accurate formatting.
  • ๐ŸŽฏ Fit Markdown: Heuristic-based filtering to remove noise and irrelevant parts for AI-friendly processing.
  • ๐Ÿ”— Citations and References: Converts page links into a numbered reference list with clean citations.
  • ๐Ÿ› ๏ธ Custom Strategies: Users can create their own Markdown generation strategies tailored to specific needs.
  • ๐Ÿ“š BM25 Algorithm: Employs BM25-based filtering for extracting core information and removing irrelevant content.
๐Ÿ“Š Structured Data Extraction
  • ๐Ÿค– LLM-Driven Extraction: Supports all LLMs (open-source and proprietary) for structured data extraction.
  • ๐Ÿงฑ Chunking Strategies: Implements chunking (topic-based, regex, sentence-level) for targeted content processing.
  • ๐ŸŒŒ Cosine Similarity: Find relevant content chunks based on user queries for semantic extraction.
  • ๐Ÿ”Ž CSS-Based Extraction: Fast schema-based data extraction using XPath and CSS selectors.
  • ๐Ÿ”ง Schema Definition: Define custom schemas for extracting structured JSON from repetitive patterns.
๐ŸŒ Browser Integration
  • ๐Ÿ–ฅ๏ธ Managed Browser: Use user-owned browsers with full control, avoiding bot detection.
  • ๐Ÿ”„ Remote Browser Control: Connect to Chrome Developer Tools Protocol for remote, large-scale data extraction.
  • ๐Ÿ‘ค Browser Profiler: Create and manage persistent profiles with saved authentication states, cookies, and settings.
  • ๐Ÿ”’ Session Management: Preserve browser states and reuse them for multi-step crawling.
  • ๐Ÿงฉ Proxy Support: Seamlessly connect to proxies with authentication for secure access.
  • โš™๏ธ Full Browser Control: Modify headers, cookies, user agents, and more for tailored crawling setups.
  • ๐ŸŒ Multi-Browser Support: Compatible with Chromium, Firefox, and WebKit.
  • ๐Ÿ“ Dynamic Viewport Adjustment: Automatically adjusts the browser viewport to match page content, ensuring complete rendering and capturing of all elements.
๐Ÿ”Ž Crawling & Scraping
  • ๐Ÿ–ผ๏ธ Media Support: Extract images, audio, videos, and responsive image formats like srcset and picture.
  • ๐Ÿš€ Dynamic Crawling: Execute JS and wait for async or sync for dynamic content extraction.
  • ๐Ÿ“ธ Screenshots: Capture page screenshots during crawling for debugging or analysis.
  • ๐Ÿ“‚ Raw Data Crawling: Directly process raw HTML (raw:) or local files (file://).
  • ๐Ÿ”— Comprehensive Link Extraction: Extracts internal, external links, and embedded iframe content.
  • ๐Ÿ› ๏ธ Customizable Hooks: Define hooks at every step to customize crawling behavior (supports both string and function-based APIs).
  • ๐Ÿ’พ Caching: Cache data for improved speed and to avoid redundant fetches.
  • ๐Ÿ“„ Metadata Extraction: Retrieve structured metadata from web pages.
  • ๐Ÿ“ก IFrame Content Extraction: Seamless extraction from embedded iframe content.
  • ๐Ÿ•ต๏ธ Lazy Load Handling: Waits for images to fully load, ensuring no content is missed due to lazy loading.
  • ๐Ÿ”„ Full-Page Scanning: Simulates scrolling to load and capture all dynamic content, perfect for infinite scroll pages.
๐Ÿš€ Deployment
  • ๐Ÿณ Dockerized Setup: Optimized Docker image with FastAPI server for easy deployment.
  • ๐Ÿ”‘ Secure Authentication: Built-in JWT token authentication for API security.
  • ๐Ÿ”„ API Gateway: One-click deployment with secure token authentication for API-based workflows.
  • ๐ŸŒ Scalable Architecture: Designed for mass-scale production and optimized server performance.
  • โ˜๏ธ Cloud Deployment: Ready-to-deploy configurations for major cloud platforms.
๐ŸŽฏ Additional Features
  • ๐Ÿ•ถ๏ธ Stealth Mode: Avoid bot detection by mimicking real users.
  • ๐Ÿท๏ธ Tag-Based Content Extraction: Refine crawling based on custom tags, headers, or metadata.
  • ๐Ÿ”— Link Analysis: Extract and analyze all links for detailed data exploration.
  • ๐Ÿ›ก๏ธ Error Handling: Robust error management for seamless execution.
  • ๐Ÿ” CORS & Static Serving: Supports filesystem-based caching and cross-origin requests.
  • ๐Ÿ“– Clear Documentation: Simplified and updated guides for onboarding and advanced usage.
  • ๐Ÿ™Œ Community Recognition: Acknowledges contributors and pull requests for transparency.

Try it Now!

โœจ Play around with this

โœจ Visit our Documentation Website

Installation ๐Ÿ› ๏ธ

Crawl4AI offers flexible installation options to suit various use cases. You can install it as a Python package or use Docker.

๐Ÿ Using pip

Choose the installation option that best fits your needs:

Basic Installation

For basic web crawling and scraping tasks:

bash
pip install crawl4ai
crawl4ai-setup # Setup the browser

By default, this will install the asynchronous version of Crawl4AI, using Playwright for web crawling.

๐Ÿ‘‰ Note: When you install Crawl4AI, the crawl4ai-setup should automatically install and set up Playwright. However, if you encounter any Playwright-related errors, you can manually install it using one of these methods:

  1. Through the command line:

    bash
    playwright install
  2. If the above doesn't work, try this more specific command:

    bash
    python -m playwright install chromium

This second method has proven to be more reliable in some cases.


Installation with Synchronous Version

The sync version is deprecated and will be removed in future versions. If you need the synchronous version using Selenium:

bash
pip install crawl4ai[sync]

Development Installation

For contributors who plan to modify the source code:

bash
git clone https://github.com/unclecode/crawl4ai.git
cd crawl4ai
pip install -e .                    # Basic installation in editable mode

Install optional features:

bash
pip install -e ".[to

Issuesยท 208 open

View all issuesOpen on GitHub
  • #2308

    [Bug]: Docker requests can no longer specify deep crawl params

    ๐Ÿž Bug๐Ÿฉบ Needs TriageUpdated Sep 28, 2026
  • #2207

    [Bug]: MCP "ask" tool exposes an empty parameters schema ({"type":"object"} with no "properties"), rejected by strict tool-calling clients

    ๐Ÿž Bug๐Ÿฉบ Needs TriageUpdated Sep 27, 2026
  • #2307

    Feature request: opt-in crawl source receipt for RAG ingestion

    Updated Sep 27, 2026
  • #2251

    [docs] DOM XSS: unescaped innerHTML interpolation in docs/apps/linkdin graph view template (5 sinks)

    ๐Ÿž Bug๐Ÿ“Œ Root causedUpdated Sep 26, 2026
  • #2293

    [Bug]: cleaned_html drops the page body when it is nested inside an unclosed <noscript>

    Updated Sep 26, 2026
  • #2098

    unclecode-litellm shadows the upstream litellm package; the quarantine that motivated the fork has been lifted

    Updated Sep 26, 2026
  • #2288

    [Bug]: One seed that fails the destination check rejects the whole `/crawl` batch

    ๐Ÿž Bug๐Ÿฉบ Needs TriageUpdated Sep 25, 2026
  • #2287

    [Bug]: `crawler_configs` is silently ignored for a single URL and on `/crawl/stream`

    ๐Ÿž Bug๐Ÿฉบ Needs TriageUpdated Sep 25, 2026
  • #2286

    [Bug]: Failed CrawlResult has `links: {}` / `media: {}` instead of the usual keys

    ๐Ÿž Bug๐Ÿฉบ Needs TriageUpdated Sep 25, 2026
  • #2283

    Should a hosted provider be allowed in the no-token bucket?

    Updated Sep 24, 2026

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category็ผ–็จ‹่ฏญ่จ€
PricingOpen source

> Related tools

T
TypeScript
JavaScript ็š„่ถ…้›†๏ผŒไธบๅ‰็ซฏไธŽๅ…จๆ ˆๆไพ›้™ๆ€็ฑปๅž‹
P
Python
้€š็”จ็ผ–็จ‹่ฏญ่จ€๏ผŒๅนฟๆณ›็”จไบŽ Webใ€ๆ•ฐๆฎไธŽ AI
G
Go
Google ๆŽจๅ‡บ็š„็ฎ€ๆด้ซ˜ๆ•ˆ็ณป็ปŸ่ฏญ่จ€