LLMs Technical Reviews

How are LLMs used, if at all?

Prompting; chunking of large pages; structured output / JSON schema; which providers; cost controls.

Verdict

Crawl4AI has the most complete LLM layer. It chunks long pages, accepts any litellm provider, and its generate_schema lets a model write a CSS schema once so later pages cost nothing. ScraperAI builds its whole design on that “pay once per layout” idea. Ten of the 17 projects reviewed here make no model calls.

Model writes the extractor. ScraperAI asks gpt-4o (the bundled default, though any BaseJsonLM plugs in) for pagination, card and field XPaths, and re-prompts with the validator’s error. Detectors see only the first 12k to 32k tokens of minified HTML. A vision description of the page is paid for and then never used. llm-scraper’s generate() similarly asks for a reusable JavaScript extractor.

One call per page. llm-scraper’s normal path sends the whole page to one AI SDK call and never counts tokens. Firecrawl uses generateObject with gpt-4o-mini by default and trims Markdown to 80% of the context limit, so data at the end of long pages can be lost.

Chunk, then merge. Crawl4AI sends every chunk at once with asyncio.gather, which can hit rate limits. ScrapeGraphAI answers semchunk chunks in parallel, merges with a final prompt, and posts prompts to an outside telemetry endpoint by default. Parsera runs 100k-token chunks with one-third overlap sequentially, plus a merge call: N + 1 calls. A bare Parsera() sends raw HTML to the vendor’s hosted API, so pass model= to keep extraction local. CyberScraper 2077 merges chunk replies with plain json.loads, silently dropping fenced replies.

No LLM. Trafilatura, AutoScraper, Browserless and Scrapling call no model; Scrapling ships an MCP server and strips hidden text against prompt injection. Our editors found that OmniParse’s litellm extraction code is never called by any route. Botright’s “AI” is vision-model CAPTCHA solving. Selenium-Driverless, Crawlab, Spider-Flow and Turndown are not applicable. Turndown is often the Markdown step before your own model call.

Pick: Crawl4AI for long pages, or to pay for a model once and use selectors after that. Pick: ScraperAI for large catalogs with stable markup, where per-row LLM cost would dominate. Pick: llm-scraper or Parsera with a local model= for short, varied pages.

Per-project answers

firecrawl/firecrawl

answered

Prompting: LLMs are used for structured JSON extraction (performLLMExtract, performQuery, performSummary in transformers/index.ts:632-638), schema-based extraction with generateObject from the Vercel AI SDK (transformers/llmExtract.ts:774-818), text summarization, question answering, highlight generation, and free-form agent extraction (performAgent). The prompt prepends markdown content to system/user prompts with the instruction to ignore data-processing directives (line 489-492).

Chunking of Large Pages: The trimToTokenLimit function (transformers/llmExtract.ts:207-274) uses tiktoken to pre-trim content by characters then precisely slice to the model's max_input_tokens at 80% capacity (line 480-486). It handles both character-based pre-trimming and exact token-aligned trimming with proper UTF-8 boundary handling.

Structured Output / JSON Schema: The system supports jsonSchema from ai, Zod schemas, and raw JSON Schema objects. Recursive schemas (with $ref, $defs) trigger model upgrade to gpt-4.1 (lines 49-72). It includes repair config (experimental_repairText, lines 678-772) that strips markdown code fences and uses LLM-based JSON repair on failure.

Providers: Multiple providers via lib/generic-ai.ts:1-55: OpenAI (default), Anthropic, Ollama, Groq, Google Gemini, OpenRouter, Fireworks, DeepInfra, and Vertex AI (GCP). The default provider switches to Ollama when OLLAMA_BASE_URL is set (line 23). The default model is gpt-4o-mini (line 464), with gpt-4.1-mini as fallback on quota errors (line 449).

Cost Controls: calculateCost tracks per-model pricing from a hardcoded table (modelCosts at lines 278-297) including GPT-4o, GPT-4.1, o3-mini, GPT-5 series, Gemini, Grok, and DeepSeek models. Costs are recorded via the CostTracking system which logs token usage and dollar amounts to billing (lines 527-543, 848-864). Unpriced models are tracked but recorded as $0 with a warning (lines 348-359).

D4Vinci/Scrapling

answered

Scrapling does not call any LLM in its core pipeline — no API calls to OpenAI, Anthropic, or others. It provides LLM-adjacent infrastructure:

MCP Server (scrapling/core/ai.py, class ScraplingMCPServer) — Implements MCP to let AI agents (Claude, Cursor) use Scrapling as a tool. ~12 tools: make_request/bulk_get (HTTP), fetch/bulk_fetch (Playwright), stealthy_fetch/bulk_stealthy_fetch (stealth browser), session management, and screenshot. All fetch tools return a ResponseModel with status, URL, and content (Markdown by default). Server instructions tell agents to use css_selector to narrow content and save tokens. Supports bearer-auth-protected HTTP transport or stdio.

Prompt-injection sanitization — Convertor._sanitize_for_ai() (shell.py:604-619) strips hidden elements, <template> tags, HTML comments, zero-width Unicode, and control characters before content reaches the LLM, preventing hidden injection text.

RAG-ready Markdown — SiteToMarkdownSpider template (scrapling/spiders/templates/site_to_markdown.py) crawls entire sites to Markdown for RAG ingestion, with css_selector, main_content_only, and output_dir controls.

Agent Skill — A skill file at agent-skill/Scrapling-Skill/ teaching coding agents the current API so generated code doesn't guess outdated interfaces.

No chunking, cost controls, or structured output enforcement — those are the calling agent's responsibility.

unclecode/crawl4ai

answered

LLM extraction. LLMExtractionStrategy (crawl4ai/extraction_strategy.py:533) orchestrates all LLM calls. Its extract() method (line 641) builds a prompt from templates in crawl4ai/prompts.py, sends it to the LLM via perform_completion_with_backoff (from crawl4ai/utils.py), parses the response (XML <blocks> or raw JSON), and tracks token usage. Chunking. The strategy chunks pages that exceed CHUNK_TOKEN_THRESHOLD (defined in crawl4ai/config.py). The run() method (line 786) calls _merge() → merge_chunks() (crawl4ai/utils.py:170) which splits documents by token estimate (word_token_ratio) with configurable overlap_rate. Sections are then dispatched to the LLM via ThreadPoolExecutor (max 4 workers) for parallel processing. Schema support. When extraction_type="schema" and a schema dict is provided, the prompt switches to PROMPT_EXTRACT_SCHEMA_WITH_INSTRUCTION, which instructs the LLM to return JSON matching the schema. force_json_response=True uses the provider's JSON-mode if available. Providers. Supported providers and their API keys are registered in crawl4ai/config.py:11-32, including OpenAI (gpt-4o, o1, o3-mini), Anthropic (claude-3-*), Gemini (gemini-pro, 2.0-flash), Groq, Ollama, and DeepSeek. The LLMConfig type (crawl4ai/types.py) holds provider/Api_token/temperature/base_url. Cost tracking. Each extraction records a TokenUsage object with prompt/completion tokens; total_usage accumulates across chunks.

Editor's note. Correction: on the normal async path LLMExtractionStrategy.arun sends all chunks at once with asyncio.gather; the 4-thread ThreadPoolExecutor is only the sync run(). Calls go through litellm, so any litellm provider string works, not only those in config.py.

ScrapeGraphAI/Scrapegraph-ai

answered

Extensive LLM usage across every pipeline stage. The library uses LLMs not just for final answer generation but also for search-query formulation (SearchInternetNode), HTML description (DescriptionNode), code generation (GenerateCodeNode), prompt refinement (PromptRefinerNode), URL relevance ranking (SearchLinkNode), and decision routing (ConditionalNode). Every GenerateAnswerNode chains a LangChain PromptTemplate to an LLM.

Prompting. All prompts come from scrapegraphai/prompts/ — distinct templates exist for single-chunk (TEMPLATE_NO_CHUNKS/TEMPLATE_NO_CHUNKS_MD), multi-chunk (TEMPLATE_CHUNKS/TEMPLATE_CHUNKS_MD), and merge (TEMPLATE_MERGE/TEMPLATE_MERGE_MD) workflows. Additional info can be prepended. When is_md_scraper or not script_creator is true, the Markdown variants (which ask the LLM to reason over Markdown-syntax content) are used.

Chunking large pages. GenerateAnswerNode.execute checks len(doc): a single chunk goes directly to the LLM; multiple chunks are processed concurrently via RunnableParallel (one chain per chunk), then a final merge prompt sends all partial results to the LLM for synthesis. Chunk size is driven by the model's max-token cap from helpers/models_tokens.py.

Structured output / JSON schema. When a Pydantic schema is provided: for ChatOpenAI models it uses get_pydantic_output_parser (which binds response_format or function-calling). For ChatOllama, it sets llm_model.format to the schema's JSON schema. For ChatBedrock, no format instructions are passed. Without a schema, TolerantJsonOutputParser wraps the response in {"content": ...}.

Supported providers. The _create_llm method in AbstractGraph supports 20+ providers: OpenAI, Azure, Google Gemini/Vertex, Ollama, Anthropic, Bedrock, MistralAI, Groq, Hugging Face, DeepSeek, TogetherAI, Fireworks, Ernie, plus custom models (CLoD, DeepSeek, MiniMax, Nvidia, OneApi, XAI). Provider is auto-detected from model name or specified via provider/model format.

Cost controls. AbstractGraph supports InMemoryRateLimiter (requests per second) and max_retries for rate limiting. Costs are tracked per-model in utils/model_costs.py (input cost per 1K tokens). The BaseGraph execution info reports total tokens, prompt/completion tokens, and cumulative USD cost per run. The model_tokens config parameter lets users override the default window (falls back to 8192 with a warning).

Editor's note. Correction: get_pydantic_output_parser returns a plain LangChain JsonOutputParser for every non-Bedrock model; it does not bind response_format or function calling. The schema only becomes format instructions in the prompt, and only Ollama gets provider-side constraint (llm_model.format set to the JSON Schema).

adithya-s-k/omniparse

answered

LLMs are used exclusively for the optional block-extraction feature in the web parser, gated behind the extract_blocks / extract_blocks_batch functions (omniparse/web/utils.py:473–560). These functions send cleaned HTML to an LLM via the litellm library (line 438–470), which acts as a unified interface to multiple providers. The supported providers are configured in omniparse/web/config.py:24–34 and include OpenAI (gpt-3.5-turbo, gpt-4-turbo, gpt-4o), Anthropic (claude-3-haiku, claude-3-opus, claude-3-sonnet), Groq (llama3-70b, llama3-8b), and Ollama (llama3). The default is openai/gpt-4-turbo (line 21). The system prompts (omniparse/web/prompts.py) ask the LLM to break the HTML into semantically relevant blocks, tagging each with an index, content, and (in the first variant) questions. For large pages, merge_chunks_based_on_token_threshold() (line 563–592) merges text chunks at a CHUNK_TOKEN_THRESHOLD of ~1000 tokens. Retries use exponential backoff (2s, 4s, 8s) on RateLimitError (line 444–470). Groq providers process sequentially with a 500ms delay; other providers use ThreadPoolExecutor parallelism (line 597–611). The extract_blocks_batch function (line 514–560) supports batched LLM calls via litellm.batch_completion. Notably, the core document/image/audio extraction pipeline does NOT use any LLM — it relies entirely on local models (Surya OCR, Florence-2, Whisper).

Editor's note. Correction: extract_blocks, extract_blocks_batch and process_sections are never called by WebCrawler.run or any router, so the shipped server makes no LLM calls at all; the litellm code is dormant crawl4ai scaffolding.

mishushakov/llm-scraper

answered

LLMs are the core extraction engine. The system prompt is hardcoded to "You are a sophisticated web scraper. Extract the contents of the webpage" (src/models.ts:12-13). The user message contains the preprocessed page content (as text, markdown, or a multimodal image via prepareAISDKPage() at src/models.ts:25-35). The LLM call goes through Vercel AI SDK's generateText(), which supports structured output / JSON Schema through the output parameter — the SDK constrains the model to produce valid JSON matching the provided Zod or JSON Schema (src/models.ts:51-57). No chunking exists; large pages are sent whole. No cost controls, token counting, or trimming are implemented in the library. Providers are any Vercel AI SDK-compatible LanguageModel: examples show OpenAI (@ai-sdk/openai), Anthropic (@ai-sdk/anthropic), Google (@ai-sdk/google), Groq (custom createOpenAI with baseURL), Ollama (ollama-ai-provider-v2). Streaming uses streamText() from the AI SDK, returning a partialOutputStream the caller iterates with for await (src/models.ts:65-91). Code generation mode (generate()) instead prompts the LLM to produce a JavaScript IIFE that extracts data — the code is then page.evaluate()'d by the caller, bypassing the LLM for repeated runs over similar pages.

itsOwen/CyberScraper-2077

answered

LLMs are the core extraction engine, invoked after fetching. The WebExtractor in src/web_extractor.py (line 71) initializes a model via Models.get_model() in src/models.py, a factory that returns ChatOpenAI for GPT models (via LangChain), ChatGoogleGenerativeAI for Gemini, wraps ChatOpenAI pointed at a custom base URL for LiteLLM proxy models, or delegates to OllamaModel.generate() for local models. All models use the same unified prompt template from src/prompts.py (line 46). The prompt system has two modes: for data-export requests (detected by keywords: 'csv', 'json', 'excel', 'sql', 'html', 'export', 'extract', 'give me the data', 'table') the LLM is instructed to return only a valid JSON array; for conversational queries it responds in plain text with the configured netrunner AI persona. For large pages exceeding context windows, WebExtractor splits content via RecursiveCharacterTextSplitter (32000 tokens, 200 overlap), processes each chunk independently through the LLM, and merges JSON results via _merge_json_chunks(). Conversation history (last 10 messages, truncated to 500 chars each) is included in prompts for multi-turn context. A caching layer in _extract_info (line 310) caches LLM responses keyed by (content_hash, query, model_name), scoped only to export requests to avoid stale conversational responses. Cost controls are minimal: defaults to the cheapest model (gpt-4.1-mini), requires users to bring their own API keys, and provides no per-session token budget enforcement beyond the implicit chunking. Model classes are: GPT (gpt-4.1-mini, gpt-4o-mini, gpt-4, gpt-3.5-turbo, text-*), Gemini (gemini-1.5-flash, gemini-pro), Ollama (any installed model), LiteLLM (any model accessible via proxy).

raznem/parsera

answered

LLMs are the core extraction engine — every extractor sends the full page markdown (or chunks thereof) to a LangChain BaseChatModel (langchain_core.language_models) via await model.ainvoke(messages), using a SystemMessage (the extractor's behaviour prompt with few-shot examples) + HumanMessage (the markdown content and field definitions). The default model when none is provided is GPT-4o-mini (model.py:36-44), wrapped as a singleton GPT4oMiniModel. Alternatively users can pass any LangChain-compatible chat model: Azure OpenAI via AzureModel (model.py:20-32), Ollama models (documented in docs/features/custom-models.md), or HuggingFace pipelines via HuggingFaceModel (model.py:48-112), which runs the pipeline in a thread executor since it lacks native async. Chunking is used for large pages: ChunksTabularExtractor uses RecursiveCharacterTextSplitter with a default chunk_size=100000 tokens (chunks_extractor.py:227-231), counted via tiktoken with the o200k_base encoding. When chunked, each chunk first extends/continues the previous extraction via an "append" prompt, then a final LLM call merges all chunk results deduplicating by proximity to boundaries. For structured output, the StructuredExtractor calls model.with_structured_output(schema=OutputSchema) on a dynamically-generated Pydantic model (structured_extractor.py:142). There is no explicit cost control mechanism beyond the user choosing a smaller model or limiting chunk size. The APIExtractor (api_extractor.py:18-51) bypasses local LLM usage entirely, sending the raw HTML content to https://api.parsera.org/v1/parse with a PARSERA_API_KEY, making the cloud service the LLM backend.

Editor's note. Correction: with no model and no extractor, Parsera() uses APIExtractor, which sends the raw page HTML to the hosted api.parsera.org endpoint with PARSERA_API_KEY (parsera/parsera.py L36-L37). GPT4oMiniModel is only the default of the CLI in parsera/main.py; library users must pass model= to run extraction locally.

scraperai/scraperai

answered

LLMs are the central intelligence of ScraperAI — every detection and extraction step calls OpenAI GPT-4. The only supported provider is OpenAI (scraperai/llm/openai.py). Three model abstractions exist: JsonOpenAI (scraperai/llm/openai.py:43-82) uses gpt-4o with response_format: {"type": "json_object"} and optionally with_structured_output(schema, method='json_mode') for Pydantic-validated JSON responses. VisionOpenAI (scraperai/llm/openai.py:84-106) uses gpt-4o for vision tasks (page classification, webpage description from screenshots). PythonCodeOpenAI (scraperai/llm/openai.py:16-40) extracts Python code from responses for code generation tasks. All models track token cost via langchain_community.callbacks.get_openai_callback. Page chunking is done with TokenTextSplitter from langchain_text_splitters at sizes of 12,000–16,000 tokens (e.g., scraperai/parsers/data_fields_extractor.py:30 sets max_chunk_size = 16000). When the HTML exceeds the chunk size, only the first chunk is sent. For pagination detection, the first and last chunks are both sent (scraperai/parsers/pagination_detector.py:64-65). Structured output is enforced by ChatModelAgent.query_with_validation (scraperai/parsers/agent.py:13-39), which validates the model's JSON response against Pydantic schemas and retries up to 3–5 times with the validation error as feedback. No cost controls exist beyond the retry limit — there is no token budget, no model fallback, and no caching. The ParserAI.total_cost property (scraperai/parsers/parserai.py:46-52) sums costs from both JsonOpenAI and VisionOpenAI instances. The .env.example shows that only OPENAI_API_KEY is required.

Editor's note. Correction: OpenAI is the bundled default, not the only option. ParserAI takes any BaseJsonLM and BaseVision implementation (one invoke method each, scraperai/llm/base.py L12-L27), so other providers plug in; only cost tracking is OpenAI-specific. PythonCodeOpenAI is constructed but never called.

browserless/browserless

not applicable

The open-source repository contains no LLM integration code — no calls to OpenAI, Anthropic, or any other LLM provider; no prompting, chunking, structured output schemas, or cost controls. The README advertises "LLM-ready data" as a feature of the premium /crawl API (cloud/enterprise only) and mentions an MCP Server for AI assistant connectivity, but neither implementation exists in the src/ directory. The only LLM-adjacent artifact is a static/docs/docs.js file that mentions "markdown" and "LLM" in its documentation strings for the cloud API. The open-source project is a pure browser-automation service — LLM features are entirely in the proprietary cloud/enterprise tier.

crawlab-team/crawlab

not applicable

Crawlab has no LLM integration of any kind. A case-insensitive search for llm, openai, chatgpt, gpt-, claude, langchain across all Go source files returned zero relevant results (only matches in protobuf-generated files and lock files unrelated to LLM use). There are no LLM providers configured, no prompt templates, no chunking logic for large pages, no structured output schemas backed by an LLM, and no cost-control mechanisms. The project does not use AI/ML for extraction, classification, summarization, or any other purpose. Scraping logic, data parsing, and field extraction are entirely the responsibility of user-written spider scripts running as subprocesses outside the Crawlab platform.

mixmark-io/turndown

not applicable

Turndown contains no LLM usage of any kind. There are no prompts, no chunking of large pages, no structured output schemas, no LLM provider integrations (OpenAI, Anthropic, or others), and no cost controls. The project is a deterministic HTML-to-Markdown converter implemented entirely in JavaScript with a rule-based approach — every replacement decision is made by matching HTML elements against predefined filters and running the corresponding replacement functions. There are no dependencies on any AI or ML libraries in package.json; the sole runtime dependency is @mixmark-io/domino for DOM parsing. The library's only output format is Markdown text, and its output is purely a function of its input rules and the HTML it receives.

ssssssss-team/spider-flow

not applicable

This repository does not use LLMs in any form. There are zero imports or references to any LLM provider (OpenAI, Anthropic, Google Generative AI, Mistral, Cohere, Ollama) across the entire Java codebase. A grep for 'openai', 'gpt', 'llm', 'chatgpt', 'embedding', 'vector', 'nlp', or 'natural language' returned no relevant matches in the core modules - only hits in third-party JS libraries and Java AST utility method names that happen to match substrings. The project operates entirely on rule-based extraction: CSS selectors, XPath, regex, and JSONPath expressions defined by the user in the visual flow editor. There is no automatic summarization, no AI-based field extraction, no chunking of large pages for LLM consumption, no structured output via JSON schema prompts, and no cost controls related to AI model usage. The extraction paradigm is strictly declarative selectors + programmatic transformation functions (string, date, list, math operations) available through the expression engine.

alirezamika/autoscraper

not applicable

AutoScraper does not use any LLM. There are no prompts, no chunking logic, no structured-output JSON schemas, no provider API keys, and no cost controls anywhere in the codebase. The project's dependencies (setup.py:29) are limited to requests, bs4, and lxml — none of which relate to language models. All extraction is purely algorithmic: pattern-matching and DOM traversal with BeautifulSoup. The fuzzy matching in utils.py:35-40 uses Python's difflib.SequenceMatcher, not any learned or generative model.

adbar/trafilatura

not applicable

This repository does not use LLMs at all. A full case-insensitive grep across the entire source for openai, anthropic, claude, gpt, gemini, langchain, llm, and huggingface returned zero matches. The project relies entirely on deterministic rule-based extraction: XPath heuristics, tag conversion, link-density analysis, and three classical algorithmic extractors (readability-lxml, jusText, and its own cascading rule engine). No prompting, chunking, structured output generation via LLM, provider integration, or cost controls exist.

vinyzu-archive/Botright

not applicable

Botright does not use LLMs anywhere in its codebase. There are no prompts, no page-chunking strategies, no structured output schemas for LLM consumption, no cost controls, and no integration with any LLM provider (OpenAI, Anthropic, or otherwise). The 'AI' components mentioned are entirely computer-vision models used for CAPTCHA solving: hcaptcha_challenger uses vision models for hCaptcha image classification; recognizer/reCognizer handles reCaptcha; the commented-out GeeTest solver used CLIP-ViT-B-32 (a vision transformer) via SentenceTransformer for image similarity and YOLOv5 for object detection (geetest_helpers.py:41,139). These are image-classification and object-detection models, not language models. The hcaptcha_challenger model hub is installed via solver.install(upgrade=True) (botright/botright.py:81), but this downloads vision model weights only.

ttlns/Selenium-Driverless

not applicable

The repository contains no LLM integration whatsoever. There are no imports, references, or integrations with OpenAI, Anthropic, LangChain, or any LLM provider anywhere in the source code (src/). A string search for openai, anthropic, gpt, langchain, llm, markdown, readability, and boilerplate across all Python source files returns only a false positive (re.fullmatch matching on "llm" substring). There is no prompt management, no chunking logic for large pages, no structured-output parser, and no cost-control mechanism. The project is a pure browser-automation driver, not an AI-extraction pipeline. If a user wants to extract structured data, they must supply their own LLM or scraping logic on top.

← How is content extracted or converted? · How are anti-bot measures, proxies and fingerprinting handled? →