LLMs Technical Reviews

How is crawling at scale implemented?

Queues; concurrency; URL dedup; depth/limits; robots.txt and politeness; distributed workers.

Verdict

Firecrawl is the only project here that crawls across several machines by itself. For crawling in one process, Scrapling and Crawl4AI have the most complete engines. Crawlab schedules other people’s crawlers rather than crawling, and seven projects do not crawl at all.

Distributed crawl service. Firecrawl puts jobs in NuQ, a Postgres queue claimed with FOR UPDATE SKIP LOCKED, dedupes URLs in Redis and filters links in Rust. It enforces robots.txt Disallow, but the Crawl-delay code is commented out.

Job-control platform. Crawlab runs your spider as a subprocess on worker nodes that poll a MongoDB queue over gRPC, capped at MaxRunners (default 8) per node, with cron schedules. URL dedup, robots.txt and politeness stay in your spider. Our editors found the dequeue is not atomic, and the V2 “all nodes” mode creates one task pinned to the first node.

Single-process frameworks. Scrapling’s Scrapy-style spiders use an asyncio.PriorityQueue, SHA-1 request fingerprints, per-domain limits and pause/resume checkpoints; robots.txt is opt-in. Crawl4AI offers BFS, DFS and best-first crawls with max_depth and URL scorers under a MemoryAdaptiveDispatcher; check_robots_txt defaults to False. Spider-Flow runs a drawn flowchart on a 64-thread JVM pool (8 per flow), with an opt-in Bloom filter saved between runs and no robots.txt. Its shipped config disables cron jobs, and the last commit is from 2022.

Discovery and pagination helpers. Trafilatura’s focused_crawler obeys robots.txt, waits 5 s and returns URL lists. ScrapeGraphAI’s DepthSearchGraph repeats link extraction over an in-memory list. ScraperAI follows a next button, scroll or URL list synchronously until max_pages. CyberScraper 2077 only expands a page range like 1-5. OmniParse’s /crawl returns “Coming soon”.

Not applicable. Browserless has only an admission queue. AutoScraper, llm-scraper and Parsera handle one page per call. Selenium-Driverless, Botright and Turndown are components with no URL frontier.

Pick: Firecrawl when crawls must spread across worker machines. Pick: Scrapling for a resumable, polite Python spider, or Crawl4AI for relevance-scored deep crawls. Pick: Crawlab to schedule, log and spread existing spiders, kept on a private network.

Per-project answers

firecrawl/firecrawl

answered

Queues: Crawls use Redis (BullMQ) via services/queue-service.ts. Jobs are persisted with saveCrawl in lib/crawl-redis.ts:45-79, which stores crawl config with 24-hour TTL. The queue backend supports both PostgreSQL (pg) and FoundationDB (fdb) for crawl job storage (StoredCrawl.queueBackend at line 31). Background extraction jobs use a separate Extract queue (services/extract-queue.ts).

Concurrency: Crawl-scoped concurrency uses sorted sets in Redis (lib/concurrency-limit.ts:174-214). An AB-Test system (services/ab-test.ts) can split or mirror crawl traffic across engines. The getNextConcurrentJob function (line 224-309) pops from a ZSET atomically, checks per-crawl concurrency caps, and re-queues blocked jobs. When a job finishes, concurrentJobDone (line 316-418) promotes backlogged jobs respecting per-team concurrency limits.

URL Dedup: The WebCrawler (crawler.ts:59-165) uses a visited Set for deduplication (line 67). The filterLinks method (line 173-471) applies dedup via both a Rust native function (filterLinks from @mendable/firecrawl-rs, line 206-221) and a JavaScript fallback. URL normalization strips www. prefix and trailing slashes (line 576-581).

Depth/Limits: Configurable maxCrawledDepth (default 10) and a limit cap (default 10000). The getURLDepth utility measures path depth. Links exceeding the depth get descriptive denial reasons (line 345-354). Filtering checks include regex-based exclude/include patterns, backward-crawling restriction, robots.txt, file-type filtering, external-link control, and non-web protocol rejection (lines 310-470).

robots.txt and Politeness: Built-in robots.txt checking via lib/robots-txt.ts:1-80 — fetched on each crawl, cached with 1-day max-age, and parsed with the robots-parser library. The ignoreRobotsTxt option disables it (crawler.ts line 152). Crawl delay from robots.txt is extracted and honored via getRobotsCrawlDelay() (line 550-552) and enforced by concurrentJobDone which pauses between job promotions (line 362-367). Sitemap discovery via tryGetSitemap (line 554-615) fetches sitemap.xml within 120s timeout.

Distributed Workers: Multiple worker processes consume from Redis queues via services/worker/ — the scrapeQueue (NuQ, a custom queue on top of BullMQ) distributes scrapes across worker pods. The concurrency-queue-reconciler.ts handles back-pressure when teams exceed their concurrency limits.

Editor's note. Correction: crawl and scrape jobs run on NuQ, a Postgres queue (FOR UPDATE SKIP LOCKED, optional FoundationDB backend, RabbitMQ only for completion signals), not BullMQ. robots.txt Disallow rules are enforced, but Crawl-delay is not: the code that would copy it into the crawl is commented out, so only the caller's delay option slows a crawl.

D4Vinci/Scrapling

answered

Crawling is implemented in scrapling/spiders/ with a Scrapy-inspired architecture:

Spider base class (scrapling/spiders/spider.py) — Users subclass Spider (or CrawlSpider/SitemapSpider/ShopifySpider templates) defining name, start_urls, allowed_domains, and an async parse(response) yielding items or Request objects.

Scheduler (scrapling/spiders/scheduler.py) — asyncio.PriorityQueue-based with URL deduplication via SHA-1 fingerprints. Duplicates dropped unless dont_filter=True. Supports snapshot/restore for checkpoint persistence (scheduler.py:31-80).

Engine (scrapling/spiders/engine.py) — CrawlerEngine orchestrates. Concurrency: anyio.CapacityLimiter — global (concurrent_requests, default 4) and per-domain (concurrent_requests_per_domain). Items stream via anyio.create_memory_object_stream for real-time stream() iteration.

AutoThrottle (scrapling/spiders/throttle.py) — Tunes per-domain delays from observed response latency. record() doubles delay on blocked responses or respects Retry-After headers; speeds back up on healthy responses. Delays clamped between start_delay (5s default) and max_delay (60s default).

Robots.txt (scrapling/spiders/robotstxt.py) — Optional robots_txt_obey flag. Fetches and caches per-domain robots.txt via Protego, checking can_fetch(), Crawl-delay, and Request-rate directives.

Pause/Resume (scrapling/spiders/checkpoint.py) — CheckpointManager saves scheduler state to disk periodically (default 5min) and on graceful shutdown. Restarting with the same crawldir resumes.

Multi-session routing (scrapling/spiders/session.py) — SessionManager handles different session types by ID. Requests carry sid to route through HTTP or browser sessions.

Templates — CrawlSpider with rule-based link following via LinkExtractor (allow/deny, domain/extension filters), SitemapSpider, XMLFeedSpider/CSVFeedSpider, ShopifySpider, and SiteToMarkdownSpider.

No distributed workers — single-process with async concurrency.

unclecode/crawl4ai

answered

Queues. async_dispatcher.py provides MemoryAdaptiveDispatcher which maintains a domain-state map for per-domain rate limiting. The Docker server adds a Redis-backed WorkQueue (deploy/docker/work_queue.py) with per-principal quotas and bounded-size queues (HTTP 429/503). Concurrency. CrawlerRunConfig.semaphore_count limits parallel page loads per dispatcher. MemoryAdaptiveDispatcher also monitors system RAM via psutil and pauses fetching when memory_threshold_percent is exceeded. URL dedup. BFSDeepCrawlStrategy.link_discovery() (crawl4ai/deep_crawling/bfs_strategy.py:133) maintains a visited: Set[str] and checks can_process_url() before adding new URLs. URLs are normalized via normalize_url_for_deep_crawl() before dedup. Depth/limits. BFSDeepCrawlStrategy accepts max_depth, max_pages, score_threshold, and include_external. The FilterChain (crawl4ai/deep_crawling/filters.py) composes URL filters (domain, path, content-type). Robots.txt/politeness. The RateLimiter.wait_if_needed() method enforces per-domain delays between requests. Crawl strategies accept should_cancel callbacks for graceful interruption. Distributed workers. The Docker deployment (deploy/docker/server.py) manages a pool of browser instances via BrowserPool (crawler_pool.py). It supports crawler_configs — per-URL custom configs with url_matcher patterns for arun_many(). Webhook delivery (deploy/docker/webhook.py) notifies external services on completion/failure. Crash recovery is supported via resume_state callback in the deep crawl strategies.

Editor's note. Correction: the server's WorkQueue is an in-process asyncio queue with per-caller caps (Redis only stores job status). robots.txt is supported: CrawlerRunConfig.check_robots_txt=True makes arun return a 403 result for disallowed URLs, but it defaults to False.

ScrapeGraphAI/Scrapegraph-ai

answered

Link-level crawling (depth-limited). The DepthSearchGraph pipeline uses FetchNodeLevelK, which implements recursive BFS-style crawling: it fetches a URL, extracts all <a href=...> links via BeautifulSoup, resolves relative URLs, deduplicates against already-seen URLs, then fetches the new links. This repeats for depth iterations. The only_inside_links flag restricts to same-domain links. The FetchNodeLevelK.obtain_content() method manages the frontier as a document list where each entry is {"source": url, "document": ...}.

No robots.txt enforcement. Despite a helpers/robots.py file, it only maps model names to bot user-agent strings (e.g., "gpt-4o"→"GPTBot"). There is no actual robots.txt fetching, parsing, or politeness-delay implementation in the code. A robots_node.py module exists but bundles an LLM prompt rather than implementing robots.txt parsing.

Concurrency via asyncio semaphore. The GraphIteratorNode runs multiple graph instances concurrently using asyncio.Semaphore(batchsize) (default 16). For each URL in the input list, it spawns a graph.run() call in a thread via asyncio.to_thread, and limits parallel execution with the semaphore. Tqdm progress bars track completion.

URL deduplication. In FetchNodeLevelK.obtain_content(), newly extracted links are checked against both the documents and new_documents lists before being added to the frontier: if not any(d.get("source") == link for d in documents) and not any(d.get("source") == link for d in new_documents). There is no shared visited set across graph runs.

No distributed workers. The codebase has no message-queue, Redis, or distributed-worker infrastructure. All concurrency is in-process via asyncio. The batch_api.py utility hints at batched LLM API calls but does not distribute scraping work.

Max results limits. Graphs accept max_results (default 3 in SearchGraph) and max_results in SearchInternetNode to cap the number of fetched pages. The AbstractGraph config can set max_results for overall graph iteration counts in graph memory.

Editor's note. Correction: RobotsNode does fetch /robots.txt and asks the LLM whether the path is allowed (raising unless force_scraping), but no shipped graph includes it, so default runs never consult robots.txt.

crawlab-team/crawlab

answered

Crawlab implements distributed task orchestration, not crawling itself, but it handles spider execution at scale. Architecture: Master and Worker nodes communicate via gRPC (core/grpc/server/task_server_v2.go:70-110). Task queue: Tasks are inserted as TaskV2 and TaskQueueItemV2 documents in MongoDB with a priority field (core/task/scheduler/service_v2.go:39-80). Workers fetch tasks via a gRPC Fetch RPC that queries and atomically dequeues from this queue, first by node assignment then by any-node fallback (core/grpc/server/task_server_v2.go:70-110). Concurrency: Each node has a configurable MaxRunners (default 8, core/node/config/config.go:20). The ServiceV2.Fetch() loop runs every second (core/task/handler/service_v2.go:76-130), checks available runner slots, and only fetches if capacity remains. URL dedup: Not implemented at the crawling level — deduplication only exists at the result-storage level (core/result/service_mongo.go:43-73, hash-based dedup on result documents). Politeness/robots.txt: None. Distributed workers: Run modes include all-nodes, random, and selected-nodes (core/constants/task.go:12-16). The master monitors workers every 15 seconds via gRPC pings (core/node/service/master_service_v2.go:93-114). File sync: Workers download spider files from master via HTTP before running (core/task/handler/runner_v2.go:329-436). Scheduling: A cron-based scheduler (core/schedule/service_v2.go:75-78) runs tasks on cron expressions. Cleanup: Tasks and stats older than 30 days are automatically purged (core/task/scheduler/service_v2.go:197-233).

Editor's note. Correction: the dequeue is not atomic. The read and delete in getTaskQueueItemIdAndDequeue do not use the transaction's session context, so two concurrent Fetch calls can pick the same item. Also, in the V2 spider admin service the all-nodes and selected-nodes modes enqueue a single task pinned to the first node; only the legacy service fanned out one task per node.

ssssssss-team/spider-flow

answered

Crawling is structured as a directed-acyclic-graph (DAG) workflow rather than traditional BFS/DFS queues. The Spider class (spider-flow-core/.../Spider.java) is the core engine. It deserializes the flow XML into a SpiderNode tree. Execution starts at the root node and fans out to connected children. Concurrency is controlled by SpiderFlowThreadPoolExecutor with a configurable global cap (default 64 threads via spider.thread.max) and per-flow cap (default 8 via spider.thread.default, Spider.java lines 47-51). Each flow gets a SubThreadPoolExecutor with a submit strategy - one of: Random, Linked (depth-first), ChildPrior, or ParentPrior (lines 112-123). Nodes that return isThread()=true execute asynchronously in the pool; synchronous nodes (e.g., ForkJoin) run inline. URL dedup uses a Bloom filter (Guava library) persisted to disk per flow ID (RequestExecutor lines 444-480), configurable via spider.bloomfilter.capacity and spider.bloomfilter.error-rate. Loop/pagination is handled by the LoopExecutor combined with the node-level loop count/collection expression in executeNode() (Spider.java lines 218-253). Scheduling uses Quartz via SpiderJob (spider-flow-core/.../job/SpiderJob.java) which runs as a QuartzJobBean with cron expression support, persisting Task records. SpiderJobManager manages job lifecycle (add/remove). On app start, all enabled cron flows are registered (SpiderFlowService.initJobs(), lines 54-71). There are no distributed workers, no external message queues, no crawl frontier/middleware architecture, and no robots.txt parser. The project uses its own custom thread pool with a submit-scheduler pattern rather than standard executor services. ProcessExecutor allows nesting one flow as a sub-routine of another.

Editor's note. Correction: URL dedup is opt-in per request node (the repeat-enable flag); without it no Bloom filter is created. Scheduled cron runs are disabled by the shipped application.properties (spider.job.enable=false), and flows are not limited to DAGs; cycles are allowed and only test runs have dead-cycle detection.

adithya-s-k/omniparse

answered

Crawling at scale is not implemented in this codebase. The WebCrawler class (omniparse/web/web_crawler.py:32–151) is a single-page fetcher: run() takes one URL and returns one responseDocument. The fetch_pages() method (line 79–110) extends this to multiple URLs using Python's ThreadPoolExecutor to map the fetch_page call across a list of UrlModel objects — this is the only concurrency mechanism. There is no crawl queue (no Redis/Bull/Kafka), no URL deduplication set, no depth/scope limiting, no robots.txt parser, no politeness delay between requests, no sitemap discovery, and no distributed worker architecture. The /crawl and /search endpoints (web/router.py:24–31) both return {"Coming soon"} — these are placeholders. README roadmap items like "Batch processing data" and "Web crawl and search" are also unfulfilled. In short: the project can fetch a list of URLs concurrently via ThreadPoolExecutor but has none of the infrastructure needed for production-scale crawling.

adbar/trafilatura

answered

A focused, single-domain crawler with URL management via the courlan library. The primary entry point is focused_crawler() in spider.py:308.

  • URL queue & dedup: The UrlStore class (from courlan) manages a priority queue of discovered URLs with domain-aware deduplication. URLs are tracked in three states: known, visited, and unvisited. Navigation pages (indices, archives) get priority placement in the queue (spider.py:224-229).
  • Limits: max_seen_urls defaults to 10; max_known_urls defaults to 100,000 (spider.py:39). The primary loop at spider.py:342 stops when either limit is reached or the domain URL store is exhausted.
  • robots.txt & politeness: Each domain's robots.txt is fetched and parsed on init (spider.py:60). is_valid_link() (spider.py:88-90) checks rules.can_fetch("*", link), that the link stays within the reference domain, and that the URL is crawlable. A configurable SLEEP_TIME (5s default) separates requests (spider.py:339).
  • Discovery modes: URLs can be seeded from sitemaps (sitemaps.py supports XML sitemaps, sitemap indexes, and robots.txt sitemap directives) and feeds (feeds.py supports ATOM, JSON, RSS). The --explore CLI option combines both.
  • Concurrency: Crawling itself is single-threaded per domain. For batch URL processing, buffered_downloads() in downloads.py:438 uses a ThreadPoolExecutor (default up to 16 threads) to parallelize fetches. No distributed worker architecture exists.

There is no support for multiple concurrent crawl workers, distributed crawling, or queue persistence across restarts.

scraperai/scraperai

answered

ScraperAI is not designed for crawling at scale — all implementations are single-threaded and synchronous. The Scraper class (scraperai/scraper.py:14-86) coordinates the crawl via a pull-based generator pattern, yielding one row at a time. For catalog pages, it loops: fetch page, parse HTML with lxml, extract items from each card (matching catalog_item.card_xpath), then call crawler.switch_page(pagination) to advance. The three pagination types (xpath, scroll, urls) are documented in scraperai/models.py:46-60. For nested detail pages, the scraper first collects all URLs from the catalog via scrape_nested_items_urls (extracting hrefs by url_xpath), then iterates over them calling crawler.get(url) per item. Concurrency: zero. The SeleniumCrawler holds one browser window. No async, no threading, no parallel workers. There is a WebdriversManager (scraperai/crawlers/webdriver/manager.py:27-61) that can distribute Selenium sessions across a pool of Selenoid servers (checking /status for active session counts) — but this is only used to create a single driver, not to parallelize work. URL deduplication happens only at the CLI level via a set() (controller.py:215). No robots.txt parsing exists anywhere in the codebase. No politeness delays — the only waits are the hard-coded time.sleep(1) in SeleniumCrawler.get() and time.sleep(3) after pagination clicks. No distributed workers, no message queues, no crawl frontier. The README roadmap lists "Add httpx and aiohttp crawlers" as a future improvement, confirming async/distributed is not yet implemented.

browserless/browserless

not applicable

There is no crawling framework in the open-source codebase. The README describes /crawl, /map (sitemap discovery), and /search APIs as premium cloud/enterprise features. The open-source project handles only individual page requests through REST endpoints and WebSocket browser connections. Concurrency management is handled by the Limiter class (src/limiter.ts:29-298), which uses the queue library to enforce configurable CONCURRENT and QUEUED limits with timeout, health-check gating (CPU/memory), and webhook alerts — but this is a per-request admission queue, not a crawling pipeline. No URL deduplication, depth limiting, politeness delays, robots.txt parsing, or distributed worker coordination exists.

mixmark-io/turndown

not applicable

Turndown provides no crawling infrastructure. There are no URL queues, no concurrency/threading models, no URL deduplication, no depth or limit controls, no robots.txt parsing, no politeness delays, and no distributed worker support. The library is invoked synchronously on a single HTML input at a time — it converts whatever is passed to it and returns the Markdown result. There is no concept of following links, discovering pages, or managing a crawl frontier. The entirety of Turndown's public API is the TurndownService class with its turndown(), addRule(), keep(), remove(), and use() methods (src/turndown.js:38-130).

alirezamika/autoscraper

not applicable

AutoScraper has no crawling capability. It is a single-page scraper: each call to build(), get_result_similar(), or get_result_exact() fetches exactly one URL and extracts data from that page. There are no URL queues, no concurrency/threading, no URL-deduplication, no crawl-depth limits, no robots.txt parsing, no politeness delays, and no distributed-worker architecture. The library does not even iterate over links on a page — it has no link-extraction logic and no "follow" mechanism. The entire source is two small files focusing purely on learning extraction rules from one page and applying them to another single page.

mishushakov/llm-scraper

not applicable

The library does not implement crawling. It is a single-page extraction tool with no URL queues, no concurrent-page management, no deduplication, no depth/limit controls, no robots.txt parsing, no politeness delays, and no distributed worker support. A caller who needs crawling must build their own loop: iterate over URLs, call page.goto() for each, and call scraper.run() per page. The test infrastructure (tests/index.ts:6-12) and all examples show this pattern — one browser, one page, one scraper.run(). No crawl() or spider() method exists.

itsOwen/CyberScraper-2077

not applicable

The project does not implement web crawling at scale. There is no crawl queue, frontier manager, URL deduplication system, robots.txt parser, politeness delay configuration, or distributed worker architecture. Instead, it operates as a single-page or user-specified multi-page scraper within a Streamlit chat session. The closest feature is scrape_multiple_pages() in playwright_scraper.py (line 588), which takes a user-provided page range (e.g. '1-5'), constructs paginated URLs via pattern detection, and fetches them concurrently with a configurable semaphore (default 5 concurrent pages). But this is explicit per-session multi-page scraping, not autonomous crawling — the user specifies every URL and range. The application runs in a single Streamlit process with asyncio.run() wrapping async operations, no job queues, and no persistent crawl state. There is no robots.txt handling: compliance is left to the user's ethical judgment (mentioned only in the README).

raznem/parsera

not applicable

Parsera does not implement crawling at scale. It is a single-page scraping library with no queue system, no URL deduplication, no depth or crawl-limit parameters, no robots.txt parsing, no politeness delays, and no distributed worker support. Each run()/arun() call fetches exactly one URL, extracts its data, and returns — the user must build any multi-page or crawl logic externally. There is no concurrency model for page fetching (Playwright handles one page at a time per session). The only "scale" feature is page-level chunking for long content, which addresses LLM context limits, not crawling breadth.

vinyzu-archive/Botright

not applicable

Botright does not implement any crawling-at-scale infrastructure. There are no URL queues, no URL deduplication, no crawl-depth limits, no robots.txt parsing, no politeness delays, and no distributed-worker coordination. The library provides Botright as a single-session entry point that manages one Playwright instance at a time; users who want multi-page crawling must build their own control flow on top of Botright's new_page() and page.goto() methods. The documentation explicitly notes the API is not thread-safe (docs/index.rst:208-214), recommending asyncio.gather() for concurrency.

ttlns/Selenium-Driverless

not applicable

This project does not implement crawling at scale. There are no URL queues, no deduplication, no depth/limit controls, no robots.txt parser, no politeness delays, no distributed workers, and no rate-limiting — none of these terms appear in the source code. The library is designed as a single-session browser driver for one-off page interactions or small-scale scraping tasks where anti-bot stealth is paramount. Crawling logic (managing multiple URLs, concurrent contexts, scheduling) must be built externally by the user.

← How are anti-bot measures, proxies and fingerprinting handled? · What is the developer interface? →