Skip to content

Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.

410 B
Raw Blame

# example_usageexample_usageexample_usage# example_usage.py
import asyncio
from crawl4ai.crawlers import get_crawler

async def main():
    # Get the registered crawler
    example_crawler = get_crawler("example_site.content")
    
    # Crawl example.com
    result = await example_crawler(url="https://example.com")
        
    print(result)
            

if __name__ == "__main__":
    asyncio.run(main())