scrapfly-extraction

scrapfly-extraction is a skill for Claude Code, Codex from scrapfly/scrapfly-mcp. It costs 22 tokens per session (2,968 once invoked), scanned A, original, MIT.

A Python interface for turning HTML, Markdown, or plain text into structured information. It can use natural-language prompts, prepared AI models, or custom extraction templates.

In plain words
What is it for?
Use it to extract product, article, review, or property details, parse documents into a chosen structure, or ask questions about document content.
Why use it?
It avoids writing separate page parsers for every document layout and makes it possible to request specific fields from unstructured content.

Skill for Claude CodeCodex

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

Good fit Use it to extract product, article, review, or property details, parse documents into a chosen structure, or ask questions about document content.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/scrapfly/scrapfly-mcp/scrapfly-extraction"><img src="https://agentmods.dev/badge/skills/scrapfly/scrapfly-mcp/scrapfly-extraction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,968 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.00022 $0.02968
Opus 5.5 $0.00009 $0.01187
Sonnet 5.5 $0.00004 $0.00594
Haiku 4.5 $0.00002 $0.00297

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

Security

Grade A, and why

scrapfly-extraction 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-extraction/SKILL.md · 389 lines

How it starts

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

Scrapfly Extraction

Use the Scrapfly Extraction API to extract structured data from HTML, markdown, or text using LLM prompts, pre-trained AI models, or custom extraction templates.

When to use

  • Extracting structured data from web page content
  • Using natural language prompts to pull specific information from documents
  • Extracting product, article, review, or real estate data with auto AI models
  • Parsing HTML/markdown into structured formats with custom templates
  • Asking questions about document content and getting AI-powered answers

Setup

pip install scrapfly-sdk

The API key must be provided via environment variable SCRAPFLY_API_KEY or passed directly to the client.

API Reference

Endpoint: POST https://api.scrapfly.io/extraction

ScrapflyClient

from scrapfly import ScrapflyClient, ExtractionConfig
import os

client = ScrapflyClient(key=os.environ["SCRAPFLY_API_KEY"])

ExtractionConfig Parameters

Parameter Type Default Description
body str required Document content to extract from
content_type str required Input format: "text/html", "text/markdown", "text/plain", "text/xml"
url str None Base URL for resolving relative links in HTML
charset str None Document encoding (auto-detected if omitted)
extraction_prompt str None Natural language instruction for LLM extraction
extraction_model str None Pre-trained model: "product", "article", "review_list", "real_estate_property_listing"
extraction_template str None Slug of a template saved on Scrapfly
extraction_ephemeral_template dict None Inline template definition
timeout int None Processing timeout in seconds (60-155)
webhook str None Webhook name for async processing

You must provide exactly one of: extraction_prompt, extraction_model, extraction_template, or extraction_ephemeral_template.

Read the full file on GitHub · 389 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 · 389 lines · 22 tokens per session scan A 611fdb95000f

Subscribe to this mod's changes

scrapfly-extraction is a skill published in the GitHub repository scrapfly/scrapfly-mcp (15 stars, last pushed 3d ago), licensed MIT. It adds 22 tokens to every session and 2,968 once invoked, about $0.0001 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-extraction compared with skills from other repositories

scrapfly-extraction next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scrapfly-extractionscrapfly/scrapfly-mcpSkill153d agoMITA22Claude Code, Codex
prompt-enhancersammcj/agentic-codingSkill1743d agoApache-2.0A63Claude Code, Codex
ambitious-model-usesammcj/agentic-codingSkill1743d agoApache-2.0A58Claude Code
llm-prompting-guidesammcj/agentic-codingSkill1743d agoApache-2.0A79Claude Code, Codex
prompt-optimizerwasintoh/toh-frameworkSkill9921d agoMITA101Claude Code, Codex
prompt-reviewspacedriveapp/spacebotSkill2.4k2mo agononeA70Claude Code, Codex
hatch3r-ai-featurehatch3r/hatch3rSkill262mo agoMITA39Claude Code