freshcrate
Home > AI Agents > spider

Description

Web crawler and scraper for Rust

README

Spider

Crates.io Downloads Documentation

Website | Guides | API | Examples | Discord

The fastest web crawler and scraper for Rust.

Quick Start

[dependencies]
spider = { version = "2", features = ["spider_cloud"] }
use spider::{
    configuration::{SpiderCloudConfig, SpiderCloudMode, SpiderCloudReturnFormat},
    tokio, // re-export
    website::Website,
};

#[tokio::main]
async fn main() {
    // Get your API key free at https://spider.cloud
    let config = SpiderCloudConfig::new("YOUR_API_KEY")
        .with_mode(SpiderCloudMode::Smart)
        .with_return_format(SpiderCloudReturnFormat::Markdown);

    let mut website = Website::new("https://example.com")
        .with_limit(10)
        .with_spider_cloud_config(config)
        .build()
        .unwrap();

    let mut rx = website.subscribe(16);

    tokio::spawn(async move {
        while let Ok(page) = rx.recv().await {
            let url = page.get_url();
            let markdown = page.get_content();
            let status = page.status_code;

            println!("[{status}] {url}\n---\n{markdown}\n");
        }
    });

    website.crawl().await;
    website.unsubscribe();
}

Also supports headless Chrome, WebDriver, and AI automation.

Install

Package Command
spider cargo add spider
spider_cli cargo install spider_cli
spider-nodejs npm i @spider-rs/spider-rs
spider-py pip install spider_rs
Spider Cloud Managed crawling — free credits on signup

License

MIT

Release History

VersionChangesUrgencyDate
v2.48.13## What's New **`spider authenticate` command** — Store your [Spider Cloud](https://spider.cloud) API key locally for remote crawls. ### Usage ```sh # Authenticate (stores key in ~/.spider/credentials) spider authenticate sk-your-key spider auth # alias, interactive prompt # Crawl via Spider Cloud (key auto-loaded) spider crawl -u https://example.com -o # Choose cloud mode spider crawl -u https://example.com --spider-cloud-mode smart -o spider crawl -u https://example.com --spider-cloud-moMedium3/31/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

xmasterX/Twitter CLI for developers and AI agents — post, reply, search, DM, schedule, analyze. Single Rust binary.v1.6.3
scraping-browser🔍 Automate dynamic web scraping with Scraping Browser, a full-host solution using Puppeteer, Selenium, and Playwright for seamless data collection.main@2026-04-21
call-with-ai-agent🗣️ Engage in real-time voice conversations with an AI agent using Next.js and ElevenLabs for an interactive and responsive user experience.master@2026-04-21
engramEnable AI agents with fast, local semantic memory to search and recall knowledge from text files without servers or complex setup.main@2026-04-21
ai-git-hooksAutomate git workflows with AI-powered hooks that review code, generate and validate commit messages, and scan for bugs and security issues.main@2026-04-21