1.  [](/)
2.  [Capabilities](/capabilities)
3.  Web Crawling & Extraction

Back to Capabilities

Feature Extraction

# Web Crawling & Extraction

Recursively crawl websites and extract multimodal content with automatic embeddings for text, code, and images

[Try It Live](/start)[Beginner Tutorial](/docs/processing/extractors/web-scraper)

## Video Overview

### Why do anything?

Building a knowledge base from documentation requires crawling hundreds of pages, extracting code snippets, and making it all searchable.

### Why now?

AI applications need comprehensive, up-to-date content. Manual scraping breaks on site updates and can't extract semantic meaning.

### Why this feature?

Automated recursive crawling with built-in multimodal embeddings (E5-Large text, Jina Code, SigLIP vision). Handles SPAs, retries failures, and generates search-ready vectors automatically.

## How It Works

Web Scraper is a recursive crawling system with BFS-based traversal, multimodal content extraction, and automatic embedding generation. Supports static and JavaScript-rendered sites with built-in resilience (retries, proxies, captcha handling).

1

#### Crawl Configuration & Setup

Initialize crawler with seed URL, depth limits, filtering patterns, and rendering strategy (static/JS/auto)

2

#### Recursive Web Crawling

BFS traversal from seed URL, discovering links up to max\_depth, respecting include/exclude patterns, with optional semantic goal-based crawling

3

#### Content Extraction

Extract text content, detect and parse code blocks (with language and line numbers), discover images (with metadata), identify downloadable assets

4

#### Content Chunking (Optional)

Split large content into chunks using configurable strategy: sentences, paragraphs, words, or characters with overlap

5

#### Document Expansion

Create individual documents per page/chunk with full metadata, crawl depth, and parent relationships

6

#### Multi-Modal Embedding Generation

Generate E5-Large (1024D) text embeddings, Jina Code (768D) embeddings for code blocks, SigLIP (768D) visual embeddings for images

7

#### Resilience & Output

Handle failures with exponential backoff retries, rotate proxies on errors, solve captchas if configured, output indexed documents

### Why This Approach

Combines recursive crawling for comprehensive coverage, multimodal extraction for rich content capture, and automatic embedding generation for instant semantic search. Built-in resilience (retries, proxies, captcha solving) handles real-world challenges. Unlike manual scraping, this scales to thousands of pages with consistent output.

## Where This Is Used

[

E-commerce

#### Product Catalog Enrichment



](/solutions/ecommerce)

[

Media

#### News & Content Aggregation



](/solutions/entertainment)

[

Finance

#### Market Intelligence & Competitive Analysis



](/solutions/finance)

## Integration

PythonJavaScriptAPI

from mixpeek import Mixpeek

client = Mixpeek(api\_key="YOUR\_API\_KEY")

# Create collection with web scraper
collection = client.collections.create(
    collection\_name="docs\_collection",
    source={
        "type": "bucket",
        "bucket\_id": "bucket\_id"
    },
    feature\_extractor={
        "feature\_extractor\_name": "web\_scraper",
        "version": "v1",
        "input\_mappings": {
            "url": "payload.docs\_url"
        },
        "parameters": {
            "max\_depth": 2,
            "max\_pages": 50,
            "crawl\_timeout": 300,
            "render\_strategy": "auto",
            "generate\_text\_embeddings": True,
            "generate\_code\_embeddings": True,
            "generate\_image\_embeddings": False,
            "delay\_between\_requests": 0.5
        }
    }
)

# API docs with structured extraction
collection = client.collections.create(
    collection\_name="api\_docs",
    source={
        "type": "bucket",
        "bucket\_id": "bucket\_id"
    },
    feature\_extractor={
        "feature\_extractor\_name": "web\_scraper",
        "version": "v1",
        "input\_mappings": {
            "url": "payload.api\_docs\_url"
        },
        "parameters": {
            "max\_depth": 3,
            "max\_pages": 100,
            "include\_patterns": \["/api/.\*", "/reference/.\*"\],
            "exclude\_patterns": \["/changelog/.\*", "/deprecated/.\*"\],
            "render\_strategy": "javascript",
            "response\_shape": {
                "type": "object",
                "properties": {
                    "endpoints": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "method": {"type": "string"},
                                "path": {"type": "string"},
                                "description": {"type": "string"},
                                "parameters": {"type": "array", "items": {"type": "string"}}
                            }
                        }
                    },
                    "authentication": {"type": "string"},
                    "rate\_limits": {"type": "string"}
                }
            },
            "llm\_provider": "openai",
            "llm\_model": "gpt-4o-mini",
            "generate\_text\_embeddings": True,
            "generate\_code\_embeddings": True,
            "generate\_image\_embeddings": True
        }
    }
)

# High-volume crawl with chunking
collection = client.collections.create(
    collection\_name="knowledge\_base",
    source={
        "type": "bucket",
        "bucket\_id": "bucket\_id"
    },
    feature\_extractor={
        "feature\_extractor\_name": "web\_scraper",
        "version": "v1",
        "input\_mappings": {
            "url": "payload.kb\_url"
        },
        "parameters": {
            "max\_depth": 4,
            "max\_pages": 200,
            "crawl\_mode": "semantic",
            "crawl\_goal": "Find all articles related to troubleshooting and error resolution",
            "chunk\_strategy": "paragraphs",
            "chunk\_size": 4,
            "chunk\_overlap": 1,
            "generate\_text\_embeddings": True,
            "generate\_code\_embeddings": False,
            "generate\_image\_embeddings": False
        }
    }
)

[View Documentation](https://mixpeek.com/docs/processing/extractors/web-scraper)

## Comparisons & Alternatives

vs. Traditional crawlers (Scrapy, Puppeteer)

#### Key Differences

*   Built-in multimodal embeddings (E5, Jina Code, SigLIP) vs. manual vector generation
*   Automatic code block detection and parsing vs. regex extraction
*   Resilience features (retry, proxy rotation, captcha) built-in vs. manual implementation
*   Optional LLM structured extraction vs. pure HTML parsing

#### When to Use

When you need embeddings for search, code extraction, or multimodal content without custom processing

#### When NOT to Use

If you need custom JavaScript actions, form submissions, or complex user interactions beyond content crawling

vs. LLM-based web scraping (Firecrawl, browse.ai)

#### Key Differences

*   Recursive BFS crawling with depth control vs. single-page extraction
*   Multimodal embeddings generated automatically vs. LLM-only understanding
*   12-30 pages/minute vs. slower LLM processing
*   5 credits/page vs. higher LLM API costs per page

#### When to Use

For large-scale documentation/knowledge base crawling where cost and speed matter

#### When NOT to Use

If you need complex reasoning or extraction from visually-complex pages where layout semantics matter

vs. Vector database loaders (LangChain, LlamaIndex)

#### Key Differences

*   End-to-end crawling + embedding + storage vs. separate ingestion steps
*   Automatic code and image detection vs. text-only loading
*   Built-in chunking strategies (sentences/paragraphs) vs. manual implementation
*   Resilience and rate limiting handled automatically vs. manual configuration

#### When to Use

When building RAG systems that need comprehensive website ingestion with minimal code

#### When NOT to Use

If you need fine-grained control over chunking logic or custom embedding models beyond E5/Jina/SigLIP

## Resources

This capability is referenced and used across the following resources:

### Recipes (2)

[Feature Extraction](/recipes/feature-extraction)[Semantic Multimodal Search](/recipes/semantic-multimodal-search)

### Solutions (3)

[Ecommerce](/solutions/ecommerce)[Entertainment](/solutions/entertainment)[Finance](/solutions/finance)

### University Modules (1)

[Chunking Strategies](/university/module/chunking-strategies)

## Recent updates

[Full changelog](/changelog)

*   [Jul 28, 2026The web scraper renders JavaScript again instead of quietly fetching static HTMLPlaywright and its Chromium build lived in a tenant-only dependency group, so the shared engine image never installed them. Nothing failed loudly: the browser-rendering service saw the missing package and switched itself off, and the in-process scraper fell back to a plain HTTP fetch that cannot run JavaScript or get past bot mitigation. A page that renders its content client-side therefore came back empty rather than erroring, and scrape batches ran about 38 minutes to produce zero documents. The browser and both driver revisions are now baked into the shared image at a fixed path that survives cache-volume mounts, so a scrape either renders the page or fails where you can see it.](/changelog)