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.
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());
}
}
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.
| Tool | Command | Repository |
|---|---|---|
| cargo | cargo add spider | spider, Rust |
| pip | pip install spider_rs | spider-py, Python |
| npm | npm install @spider-rs/spider-rs | spider-nodejs, JavaScript |
| npm | npm install spider-browser | spider-browser, TypeScript |
| npx | npx spider-cloud-mcp Needs SPIDER_API_KEY in the environment. Setup on the MCP page | spider-mcp, JavaScript |
| cargo | cargo install gottem-cli | gottem, 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.
Browser and rendering
Chrome driven from Rust, and the user agents and profiles a browser presents.
Clients and SDKs
The crawler from Python and Node.js, and clients for the hosted API.
- 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.
Tools
Smaller pieces that are useful without the crawler.
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