Skip to main content

An open source web crawler in Rust.

Spider's crawler is spider-rs/spider, a public Rust crate under the MIT license with 2.9k stars on GitHub. Run it on your own machines.

src/main.rs
use spider::website::Website;
 
#[tokio::main]
async fn main() {
    let mut website = Website::new("https://example.com");
 
    website.crawl().await;
 
    for page in website.get_pages().unwrap().iter() {
        println!("{} - {} bytes", page.get_url(), page.get_html_bytes_u8().len());
    }
}
The basic crawl from the self-hosting guide. It prints the URL and byte size of each page it finds on the same domain.

Six of them install in one line.

The crate, its Python and Node.js ports, the browser client, the MCP server and gottem each come from a package manager you already have. The rest you take from their repositories, listed below by what they are for.

Install lines cargo · pip · npm · npx
The 6 repositories that install in one line, with the command for each
cargocargo add spiderspider, Rust
pippip install spider_rsspider-py, Python
npmnpm install @spider-rs/spider-rsspider-nodejs, JavaScript
npmnpm install spider-browserspider-browser, TypeScript
npxnpx spider-cloud-mcp Needs SPIDER_API_KEY in the environment. Setup on the MCP pagespider-mcp, JavaScript
cargocargo install gottem-cligottem, Rust

Crawler core

The crawler, and the libraries that turn a fetched page into text.

spider
Rust
Low-latency web data collector. Concurrent crawling in Rust. MIT license. The crawl at the top of this page is its quick start, copied from the self-hosting guide.
html2md
Rust
HTML to Markdown for Rust. Built for LLM content preparation.
readability
Rust
Readability extraction for Rust. Pulls the main content out of a page.
spider_transformations
Rust
HTML transformation library for Rust.

Browser and rendering

Chrome driven from Rust, and the user agents and profiles a browser presents.

headless-browser
Rust
Headless browser setup for Fargate, Cloud Run, and Kubernetes.
chromey
Rust
Chrome DevTools Protocol implementation for Rust.
spider_fingerprint
Rust
Consistent browser profile generation for Rust.
ua_generator
Rust
Pre-compiled real User-Agents for Rust. Updated weekly.

Clients and SDKs

The crawler from Python and Node.js, and clients for the hosted API.

spider-py
Python
Spider ported to Python. Rust crawler speed from a Python API.
spider-nodejs
JavaScript
Spider ported to Node.js. Native bindings for JavaScript.
spider-clients
Python, JavaScript, Rust
Python, JavaScript, and Rust client libraries for the Spider API.
spider-browser
TypeScript
Client for Spider's native cloud browser, built for AI agents, with smart retries.
spider-mcp
JavaScript
Model Context Protocol server for Claude, Cursor, and Windsurf.

Tools

Smaller pieces that are useful without the crawler.

gottem
Rust
One API for every web-scraping vendor. Tiered routing across HTTP, headless, and vendors.
auto-encoder
Rust
Bytes-to-string encoding detection for Rust.
async_job
Rust
Simple async cron jobs for Rust.
firewall
Rust
Firewall utilities for Rust services.
proxier
Rust
Auto proxy whitelisting for third-party services.

Around the code

The hosted API, and where to ask.

Integrations
Spider inside agent frameworks and automation tools.
Docs
The reference for the hosted API.
Support
Where to ask a question, by email, Discord or GitHub discussions.
github.com/spider-rs
Every repository on this page, in one place.

Don't want to run it yourself?

Hosted Spider runs the same crawler with proxies, a browser and scaling handled. 2,500 free credits, worth $0.25, if your signup passes our checks. No card required.

Open source vs hosted
Get an API key