Release v0.7.5
๐ Crawl4AI v0.7.5: Docker Hooks & Security Update
๐ฏ What's New
๐ง Docker Hooks System
Inject custom Python functions at 8 key pipeline points for authentication, performance optimization, and content processing.
Function-Based API with IDE support:
from crawl4ai import hooks_to_string
async def on_page_context_created(page, context, **kwargs):
"""Block images to speed up crawling"""
await context.route("**/*.{png,jpg,jpeg,gif,webp}", lambda route: route.abort())
return page
hooks_code = hooks_to_string({"on_page_context_created": on_page_context_created})
8 Available Hook Points:
on_browser_created, on_page_context_created, before_goto, after_goto, on_user_agent_updated, on_execution_started, before_retrieve_html, before_return_html
๐ค Enhanced LLM Integration
- Custom temperature parameter for creativity control
- Multi-provider support (OpenAI, Gemini, custom endpoints)
- base_url configuration for self-hosted models