Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.
GitHub repo · AI & Machine LearningFree

Crawl4AI

An open-source Python crawler that turns websites into clean, LLM-ready Markdown. It drives a real browser, removes boilerplate, extracts structured data with CSS or XPath rules or with an LLM, crawls whole sites with several strategies and runs in Docker with a REST API and MCP support. Apache 2.0.

GitHub stars

84.9k (unclecode/crawl4ai)

GitHub · Oct 2026

Latest version

v0.9.4 (Sept 2026)

GitHub · Oct 2026

Format

GitHub repo

Topic

AI & Machine Learning

Provider

Crawl4AI (open source)

Time needed

An afternoon to crawl a first site

Level

Intermediate

Access

Free

What Crawl4AI is

Crawl4AI is an open-source web crawler and scraper built for feeding websites to language models. Its README sums it up: any website into clean, LLM-ready Markdown. You run it yourself, as a Python library or as a Docker service, which keeps costs and data under your control.

Key features

  • Clean Markdown: headings, lists, tables and code blocks preserved, with filters that strip navigation and boilerplate, and links turned into a numbered reference list.
  • Extraction without an LLM: pull structured fields with CSS or XPath rules, which is fast, free and repeatable.
  • Extraction with an LLM: when pages vary too much for rules, send the content to a model of your choice with a schema.
  • A real browser: Chromium, Firefox or WebKit, JavaScript execution, scrolling, persistent profiles, proxies and custom headers.
  • Crawling strategies: breadth-first, depth-first and best-first crawls, adaptive crawling that stops when it has enough, crash recovery and batch processing.
  • Docker deployment: a REST API for Markdown, HTML, screenshots and PDFs, a monitoring dashboard, and MCP integration so agents can call it.

Getting started

Install with pip install -U crawl4ai, then run crawl4ai-setup to install the browser it needs. A few lines of async Python fetch a page as Markdown.

When to choose it

Pick Crawl4AI when you want a free, self-hosted crawler, need fine control over the browser, or must keep crawled data on your own servers. Pick a hosted API when you would rather not run browsers yourself.

Use it responsibly

Check each site's terms and robots rules, crawl slowly, prefer official APIs or exports where they exist, and do not collect personal data you have no right to.

Prerequisites and time

Comfortable Python, including async functions, and a little HTML and CSS for selector-based extraction. A first crawl takes an afternoon.

Free or paid?

Free and open source under the Apache 2.0 licence.

Common questions

Do I need an LLM to extract data? Often not. For pages with a stable layout, CSS or XPath rules are faster, free and give the same result every time. Use an LLM only when pages vary too much for rules.

Best for: students and teams building RAG or research tools over web content who want an open-source, self-hosted crawler.

aiweb scrapingpythonragopen source

Ready to start?

Opens on Crawl4AI (open source) in a new tab.

Open resource
Link broken or out of date?

Report a problem

With "Crawl4AI". Only Tauseef reads this.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.