gitmyhub

crawl4ai

Python ★ 72k updated 1d ago

🚀🤖 Crawl4AI: Open-source LLM Friendly Web Crawler & Scraper. Don't be shy, join here: https://discord.gg/jP8KfhDhyN

Web crawler that converts pages to clean Markdown for AI systems, handling JavaScript and stripping noise automatically.

PythonPlaywrightDockerAsyncsetup: moderatecomplexity 3/5

Crawl4AI is an open-source web crawling and scraping library specifically designed to produce output that is easy for AI systems to consume. The core problem it solves is that most web pages contain a lot of noise — navigation menus, ads, footers, scripts — and AI tools like large language models work best with clean, well-structured text. Crawl4AI fetches web pages and converts them into clean Markdown format, stripping away the clutter so the content can feed directly into AI workflows like retrieval-augmented generation (RAG), autonomous agents, or data analysis pipelines.

Under the hood it uses an async browser pool built on Playwright (a browser automation library) to render pages just like a real browser would, which means it handles JavaScript-heavy sites that simple HTTP scrapers miss. It supports features like session management, proxy rotation, cookie handling, anti-bot detection bypass, and deep crawling strategies such as breadth-first search across multiple pages. Content can be extracted as clean Markdown, or developers can instruct the crawler to extract structured data by providing a schema or asking an AI model a natural language question about the page. It can be run from a Python script, a command-line interface, or inside a Docker container with no API key required. You would use Crawl4AI when building an AI pipeline that needs live web data, when scraping competitor sites for research, or when populating a knowledge base from online documentation. The tech stack is Python with Playwright for browser automation, installable via pip.

Where it fits