Crawl4AI simplifies asynchronous web crawling and data extraction, making it accessible for large language models (LLMs) and AI applications.

Looking for the synchronous version? Check out README.sync.md. You can also access the previous version in the branch V0.2.76.

Try It Now!

✨ Play around with this

✨ Visit our Documentation Website

Features

  • πŸ†“ Completely free and open-source
  • πŸš€ Blazing fast performance, outperforming many paid services
  • πŸ€– LLM-friendly output formats (JSON, cleaned HTML, markdown)
  • 🌍 Supports crawling multiple URLs simultaneously
  • 🎨 Extracts and returns all media tags (Images, Audio, and Video)
  • πŸ”— Extracts all external and internal links
  • πŸ“š Extracts metadata from the page
  • πŸ”„ Custom hooks for authentication, headers, and page modifications before crawling
  • πŸ•΅οΈ User-agent customization
  • πŸ–ΌοΈ Takes screenshots of the page
  • πŸ“œ Executes multiple custom JavaScripts before crawling
  • πŸ“Š Generates structured output without LLM using JsonCssExtractionStrategy
  • πŸ“š Various chunking strategies: topic-based, regex, sentence, and more
  • 🧠 Advanced extraction strategies: cosine clustering, LLM, and more
  • 🎯 CSS selector support for precise data extraction
  • πŸ“ Passes instructions/keywords to refine extraction
  • πŸ”’ Proxy support for enhanced privacy and access
  • πŸ”„ Session management for complex multi-page crawling scenarios
  • 🌐 Asynchronous architecture for improved performance and scalability

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:

pip install crawl4ai

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

πŸ‘‰ Note: When you install Crawl4AI, the setup script 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:
playwright install

For more information click here.

LEAVE A REPLY

Please enter your comment!
Please enter your name here