scrapfly-sdk-rust

scrapfly-sdk-rust is a skill for Claude Code, Codex from scrapfly/scrapfly-mcp. It costs 57 tokens per session (1,056 once invoked), scanned A, original, MIT.

A Rust library for collecting web page content, including HTML, JSON, text, and Markdown, from an asynchronous Rust program. It can also render JavaScript pages, take screenshots, and extract structured data.

In plain words
What is it for?
Use it to scrape URLs, collect data from JavaScript-heavy pages, take screenshots, or extract structured information in Rust.
Why use it?
It avoids building the network, browser-rendering, proxy, and page-parsing parts of a scraper yourself. It also provides options for pages that use anti-bot protections.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to scrape URLs, collect data from JavaScript-heavy pages, take screenshots, or extract structured information in Rust.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scrapfly/scrapfly-mcp/scrapfly-sdk-rust
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add scrapfly/scrapfly-mcp --skill scrapfly-sdk-rust
Clone the repo
git clone --depth 1 https://github.com/scrapfly/scrapfly-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scrapfly-sdk-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-rust/github.svg)](https://agentmods.dev/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-rust)
Your own site
<a href="https://agentmods.dev/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-rust"><img src="https://agentmods.dev/badge/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-rust/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scrapfly-sdk-rust

Your own site · 80×15
<a href="https://agentmods.dev/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-rust"><img src="https://agentmods.dev/badge/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,056 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01056
Opus 5.5 $0.00023 $0.00422
Sonnet 5.5 $0.00011 $0.00211
Haiku 4.5 $0.00006 $0.00106

Measured 4d ago against content hash 4bf4d98a8b82, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scrapfly-sdk-rust scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

pkg/mcpskills/skills/scrapfly-sdk-rust/SKILL.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scrapfly Rust SDK

Use the scrapfly-sdk crate to scrape web pages from Rust with proxy rotation, anti-bot bypass (Unblocker), JavaScript rendering, screenshots, and AI extraction. The client is async (Tokio) and uses typed builders for every config.

When to use

  • Scraping web pages (HTML, JSON, text, markdown) from a Rust codebase
  • Bypassing anti-bot protections (Cloudflare, DataDome, PerimeterX, Kasada)
  • Rendering JavaScript-heavy pages with a headless browser
  • Capturing screenshots or extracting structured data

Setup

cargo add scrapfly-sdk
cargo add tokio --features full
export SCRAPFLY_API_KEY="your-api-key"

Get your API key at scrapfly.io.

Basic scrape

use scrapfly_sdk::{Client, ScrapeConfig};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::builder()
        .api_key(std::env::var("SCRAPFLY_API_KEY")?)
        .build()?;

    let config = ScrapeConfig::builder("https://web-scraping.dev/products").build()?;
    let result = client.scrape(&config).await?;

    println!(
        "status={} content={}",
        result.result.status_code,
        result.result.content,
    );
    Ok(())
}

Anti-bot bypass, geo-targeting, JS rendering

Chain typed builder methods. proxy_pool and format take enums.

use scrapfly_sdk::{Client, ScrapeConfig, Format, ProxyPool};

let config = ScrapeConfig::builder("https://web-scraping.dev/products")
    .unblocker(true)                             // bypass anti-bot
    .country("us")                               // proxy country (ISO 3166-1 alpha-2)
    .proxy_pool(ProxyPool::PublicResidentialPool) // or PublicDatacenterPool
    .render_js(true)                             // headless browser rendering
    .wait_for_selector("div.product")            // requires render_js
    .rendering_wait(5000)                        // ms, requires render_js
    .format(Format::Markdown)                    // clean, LLM-friendly content
    .build()?;

let result = client.scrape(&config).await?;

Read the full file on GitHub · 124 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 124 lines · 57 tokens per session scan A 4bf4d98a8b82

Subscribe to this mod's changes

scrapfly-sdk-rust is a skill published in the GitHub repository scrapfly/scrapfly-mcp (15 stars, last pushed 3d ago), licensed MIT. It adds 57 tokens to every session and 1,056 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-26.

Related

scrapfly-sdk-rust compared with skills from other repositories

scrapfly-sdk-rust next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scrapfly-sdk-rustscrapfly/scrapfly-mcpSkill153d agoMITA57Claude Code, Codex
rust-engineersammcj/agentic-codingSkill1743d agoApache-2.0A39Claude Code, Codex
camoufox-cliBin-Huang/camoufox-cliSkill36620d agoMITA74Claude Code, Codex
Agent Browser AutomationPramodDutta/qaskillsSkill25227d agoMITA37Claude Code, Codex
rust-developmentsammcj/agentic-codingSkill1743d agoApache-2.0A13Claude Code, Codex
bevymetaspartan/cybaraSkill416d agoMITA43Claude Code, Codex
webassembly-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A69Claude Code