Skip to content

About

Rust-accelerated Python crawler for structured web data and AI pipelines, with Scrapy-style APIs and persistent crawls.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

146 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpiderOxide

Python-first crawling with a Rust-powered core.
Build spiders with familiar APIs; choose Python or Rust for the crawl engine and downloader.

CI CPython 3.10-3.14 MIT License

Quick start · Why SpiderOxide · Scrapy compatibility · Documentation · Status

SpiderOxide is an experimental, asynchronous web crawling framework. Write spiders, callbacks, middleware, and pipelines in Python; use a native Rust engine for scheduling, persistence, policies, and HTTP transport where it fits your workload. Both engines are checked against the same behavioral tests.

Important

SpiderOxide is under active development and is not yet a drop-in Scrapy replacement. Evaluate it with representative crawls before production use. It is an independent project, not affiliated with or endorsed by Scrapy.

Why SpiderOxide?

What you need What SpiderOxide offers
Familiar development Python spiders, selectors, middleware, pipelines, settings, and Scrapy-style project commands
A native path Rust scheduling, fingerprinting, duplicate filtering, persistent jobs, policies, and HTTP downloads
Explicit control Select python, rust, or auto for the crawl engine and downloader independently
Measurable behavior Version-pinned Scrapy conformance checks, cross-backend integration tests, and reproducible component benchmarks

It can export structured data for search, analytics, or downstream AI pipelines; it does not include browser automation, embeddings, or model inference. Crawl only sources you are permitted to use, respect site policies and privacy, and review content rights before reusing data.

Quick start

SpiderOxide supports GIL-enabled CPython 3.10-3.14. For a source checkout, install the development dependencies and build the native extension with stable Rust and a native build toolchain:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python -m maturin develop --release

On Windows PowerShell, activate with .\.venv\Scripts\Activate.ps1. For tested wheel targets and release status, see installation and distribution.

Create a spider and collect items with the default Python engine:

import asyncio

from spideroxide import Crawler, Spider


class LinkSpider(Spider):
    name = "links"
    start_urls = ["https://example.com/"]

    def parse(self, response):
        for link in response.css("a"):
            yield {
                "text": link.xpath("string(.)").get(),
                "href": link.css("::attr(href)").get(),
            }


result = asyncio.run(Crawler(LinkSpider).crawl())
print(result.items)

To select the native engine and downloader, pass settings={"ENGINE_BACKEND": "rust", "DOWNLOADER_BACKEND": "rust"} to Crawler. The user guide covers runners, settings, middleware, caching, proxying, feeds, and both backends.

Warning

For Scrapy compatibility, DOWNLOAD_VERIFY_CERTIFICATES defaults to False. Set it to True for production crawls unless certificate verification is deliberately handled elsewhere.

Scrapy compatibility

The optional spideroxide-scrapy-compat distribution provides implemented Scrapy 2.19.0 import paths and the scrapy command. It cannot share an environment with upstream Scrapy: both distributions own the scrapy package. The main spideroxide package can coexist with upstream Scrapy for comparisons.

From a source checkout, in an environment without upstream Scrapy:

python -m pip install ./compat/scrapy
scrapy startproject example

See the compatibility matrix for supported APIs, deviations, opt-in Twisted features, and limitations. The conformance suite compares supported behavior against upstream Scrapy on both engines; the third-party certification matrix records tested integrations.

Performance, with context

In a measured 100,000-request component workload, the Rust combined scheduler flow was 15.81x faster than Scrapy 2.17.0. That result excludes networking, parsing, middleware, and complete crawls; it is not a whole-crawler speedup claim. See benchmark methodology and results for the environment, raw data, and reproduction commands. A separate full-crawl harness compares complete crawls on a deterministic local HTTP workload without a published speedup claim.

Documentation

Start here For
Installation and distribution Supported platforms, source builds, wheel validation, and release process
User guide Crawling APIs, settings, backends, middleware, policies, persistence, and exports
Scrapy compatibility Exact supported version, known gaps, Twisted integration, and migration policy
Benchmarks Reproducible performance evidence and its limits
Contributing Development setup, required checks, and contribution guidelines

Project status

CI checks 25 wheels across Linux x86-64/ARM64, macOS x86-64/ARM64, and Windows x86-64 on CPython 3.10-3.14. Other platforms are not claimed. A full previous-version upgrade is not yet certified because no earlier release has been published; see the distribution support details.

Full Twisted protocol internals and arbitrary third-party components are outside the currently supported compatibility surface. Performance evidence covers request-processing components, not complete network crawls. The Python backend remains available while native parity and production readiness are evaluated.

License

SpiderOxide is available under the MIT License.

About

Rust-accelerated Python crawler for structured web data and AI pipelines, with Scrapy-style APIs and persistent crawls.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages