Web scraping for LLMs: best open-source scrapers (2026)
Our pick
Start with Crawl4AI if you want to turn web pages into clean Markdown for an LLM. You install it with pip install -U crawl4ai or run it in Docker, and the crawler is Apache-2.0 licensed. It offers a hosted cloud API as well, but the repository is the crawler you run yourself. The table shows its last commit and latest release, and how the other tools compare.
Best for
- A Firecrawl-style API you run yourself
firecrawl/firecrawlHolds the code for Firecrawl Local, a single binary that turns websites into Markdown and serves the Firecrawl API on localhost, and for a full self-hosted server. It is mainly AGPL-3.0, with MIT-licensed SDKs.
- Sites with bot protection and large crawls
D4Vinci/ScraplingA Python framework with HTTP requests, stealth browsers, JavaScript rendering and concurrent crawling with proxy rotation and retries. It has an MCP server and an Agent Skill.
- Pulling fields out of a page with an LLM prompt
ScrapeGraphAI/Scrapegraph-aiA Python library that uses an LLM and graph logic to build scraping pipelines. You say which information you want, and it extracts it. Install with pip install scrapegraphai and playwright install.
- Typed data from TypeScript
mishushakov/llm-scraperA TypeScript library that extracts structured data from a page with schemas written in Zod or JSON Schema. It is built on Playwright and works with models such as GPT, Sonnet and Gemini.
- Main text and metadata from web pages
adbar/trafilaturaA Python package and command-line tool that crawls, downloads and extracts the main text and metadata of pages. It needs no database and exports to CSV, JSON, HTML, Markdown, TXT and XML.
- Pages that need clicks and logins
browserbase/stagehandAn SDK for browser agents, with TypeScript and Python examples, where you act on a page in plain language and extract schema-validated data. Cookies persist so you can sign in once.
The repos compared
Checked on Nov 26, 2026: the oldest day any repo in the table was last read from GitHub.
| Repo | Stars | Last commit | Latest release | Licence | Needs |
|---|---|---|---|---|---|
| unclecode / crawl4ai An open-source crawler that turns web pages into clean Markdown for LLMs. | 88,321 GitHub (opens in new tab) | Active Nov 23, 2026 | v0.9.6, Nov 20, 2026 | Apache-2.0 | |
| firecrawl / firecrawl Scrapes, crawls and maps websites into Markdown, with a local binary and a self-hosted server. | 214,612 GitHub (opens in new tab) | Active Dec 1, 2026 | v2.11.0, Jun 19, 2026 | AGPL-3.0 | |
| D4Vinci / Scrapling A Python scraping framework with stealth browsers and concurrent crawling. | 107,501 GitHub (opens in new tab) | Active Dec 1, 2026 | v0.5.2, Nov 29, 2026 | BSD-3-Clause | |
| ScrapeGraphAI / Scrapegraph-ai A Python library that uses an LLM to build scraping pipelines. | 33,024 GitHub (opens in new tab) | Active Oct 6, 2026 | v2.3.1, Oct 6, 2026 | MIT | |
| jina-ai / reader Converts any URL to LLM-friendly input by adding a prefix to the address. | 12,297 GitHub (opens in new tab) | Active Dec 1, 2026 | - | Apache-2.0 | |
| adbar / trafilatura A Python package and command-line tool that extracts text and metadata from web pages. | 7,274 GitHub (opens in new tab) | Active Nov 27, 2026 | v2.4.0, Nov 23, 2026 | Apache-2.0 | |
| mishushakov / llm-scraper A TypeScript library that extracts structured data from pages using LLMs. | 6,970 GitHub (opens in new tab) | Active Jun 15, 2026 | - | MIT | |
| browserbase / stagehand An SDK for browser agents that act on web pages in plain language and extract data. | 26,216 GitHub (opens in new tab) | Active Dec 1, 2026 | @browserbasehq/[email protected], Nov 18, 2026 | MIT | |
| fastcrw / crw A Rust scraper, crawler and search API with an MCP server and a Firecrawl-compatible API. | 1,340 GitHub (opens in new tab) | Active Dec 2, 2026 | v0.50.0, Dec 2, 2026 | AGPL-3.0 |
Install commands
Copied from each repo. Read its setup steps before you run anything.
D4Vinci/Scrapling
pip install scraplingQuestions
What is the best web scraper for LLMs?
Crawl4AI and Firecrawl both turn pages into clean Markdown for LLMs, and both can be run on your own machine. Scrapling is a wider scraping framework, and Trafilatura extracts the main text and metadata of pages.
What is an open-source alternative to Firecrawl?
Crawl4AI is an Apache-2.0 crawler you can run with Python or Docker. Crw is a Rust server with a Firecrawl-compatible API (scrape, crawl and search endpoints), and it is AGPL-3.0 like Firecrawl. Firecrawl itself also has a self-hosted server in its repository.
What is an AI web scraper?
A scraper that uses an LLM to decide what to extract instead of hand-written selectors. ScrapeGraphAI and LLM Scraper take a prompt or a schema and return the data you asked for.
Do I need an API key or an account?
Not for the self-hosted tools. Crawl4AI runs locally with Python or Docker, Firecrawl Local runs on your own machine, and Trafilatura is a Python package and command-line tool. Tools that call an LLM, such as ScrapeGraphAI and LLM Scraper, need access to a model.
Can I turn a URL into Markdown without installing anything?
Jina Reader converts a URL when you put https://r.jina.ai/ in front of it. The repository is the open-source branch of the code behind that service.
