scrapfly-sdk-go

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

A Go library for collecting web page content from Go programs. It supports JavaScript rendering, screenshots, structured extraction, proxy rotation, and includes a selector for parsing results.

In plain words
What is it for?
Use it to scrape URLs, handle JavaScript-heavy pages, bypass supported anti-bot protections, take screenshots, or extract structured data in Go.
Why use it?
It avoids implementing the web request, browser-rendering, proxy, and response-parsing pieces of a scraper yourself.

Skill for Claude CodeCodex

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

Good fit Use it to scrape URLs, handle JavaScript-heavy pages, bypass supported anti-bot protections, take screenshots, or extract structured data in Go.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scrapfly/scrapfly-mcp/scrapfly-sdk-go
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-go
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-go

README.md
[![agentmods](https://agentmods.dev/badge/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-go/github.svg)](https://agentmods.dev/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-go)
Your own site
<a href="https://agentmods.dev/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-go"><img src="https://agentmods.dev/badge/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-go/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-go

Your own site · 80×15
<a href="https://agentmods.dev/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-go"><img src="https://agentmods.dev/badge/skills/scrapfly/scrapfly-mcp/scrapfly-sdk-go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 955 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.00060 $0.00955
Opus 5.5 $0.00024 $0.00382
Sonnet 5.5 $0.00012 $0.00191
Haiku 4.5 $0.00006 $0.00096

Measured 4d ago against content hash 8db7bbf86576, 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-go 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-go/SKILL.md · 115 lines

How it starts

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

Scrapfly Go SDK

Use the go-scrapfly module to scrape web pages from Go with proxy rotation, anti-bot bypass (Unblocker), JavaScript rendering, screenshots, and AI extraction. It ships a built-in goquery selector for parsing the response.

When to use

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

Setup

go get github.com/scrapfly/go-scrapfly
export SCRAPFLY_API_KEY="your-api-key"

The package name is scrapfly. Get your API key at scrapfly.io.

Basic scrape

package main

import (
    "fmt"
    "log"
    "os"

    "github.com/scrapfly/go-scrapfly"
)

func main() {
    client, err := scrapfly.New(os.Getenv("SCRAPFLY_API_KEY"))
    if err != nil {
        log.Fatalf("failed to create client: %v", err)
    }

    apiResponse, err := client.Scrape(&scrapfly.ScrapeConfig{
        URL: "https://web-scraping.dev/product/1",
    })
    if err != nil {
        log.Fatalf("scrape failed: %v", err)
    }

    fmt.Println(apiResponse.Result.Content)
}

Anti-bot bypass, geo-targeting, JS rendering

ScrapeConfig fields are Go-idiomatic PascalCase. ProxyPool takes a typed constant. Unblocker is a *bool (nil = unset), so set it with the scrapfly.BoolPtr helper.

apiResponse, err := client.Scrape(&scrapfly.ScrapeConfig{
    URL:             "https://web-scraping.dev/product/1",
    Unblocker:       scrapfly.BoolPtr(true),         // bypass anti-bot
    Country:         "us",                           // proxy country (ISO 3166-1 alpha-2)
    ProxyPool:       scrapfly.PublicResidentialPool, // or scrapfly.PublicDataCenterPool
    RenderJS:        true,                           // headless browser rendering
    WaitForSelector: "div.product",                  // requires RenderJS
    RenderingWait:   5000,                           // ms, requires RenderJS
    Format:          "markdown",                     // raw | clean_html | json | markdown | text
})

Read the full file on GitHub · 115 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 · 115 lines · 60 tokens per session scan A 8db7bbf86576

Subscribe to this mod's changes

scrapfly-sdk-go is a skill published in the GitHub repository scrapfly/scrapfly-mcp (15 stars, last pushed 3d ago), licensed MIT. It adds 60 tokens to every session and 955 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-go compared with skills from other repositories

scrapfly-sdk-go next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scrapfly-sdk-goscrapfly/scrapfly-mcpSkill153d agoMITA60Claude Code, Codex
agent-browserTencent/WeKnoraSkill38k3d agononeA83Claude Code, Codex
camoufox-cliBin-Huang/camoufox-cliSkill36620d agoMITA74Claude Code, Codex
robotgo-flowznlgis/opengis-skillsSkill8619d agoMITA96Claude Code, Codex
golang-developmentsammcj/agentic-codingSkill1743d agoApache-2.0A14Claude Code, Codex
goga-cell-goqarium/gogaSkill467d agoBSD-3-ClauseA14Claude Code, Codex
code-review-gosoulcodex/agenticSkill1010d agoMITA61Claude Code, Codex