web-scraper

web-scraper is a skill for Claude Code from bestdeejay-design/agent-skills. It costs 169 tokens per session (1,420 once invoked), scanned A, original, MIT.

A small Python tool that downloads selected content from an HTML web page and returns text, links, and tables as Markdown or JSON. HTML is the markup used to structure web pages.

In plain words
What is it for?
Use it to extract chosen page sections for analysis, reports, or datasets, while checking robots.txt and applying a request rate limit.
Why use it?
It removes repetitive copying when you need information from specific sections of a public page.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it to extract chosen page sections for analysis, reports, or datasets, while checking robots.txt and applying a request rate limit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bestdeejay-design/agent-skills/web-scraper
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 bestdeejay-design/agent-skills --skill web-scraper
Clone the repo
git clone --depth 1 https://github.com/bestdeejay-design/agent-skills

Made for: Claude Code.

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 web-scraper

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bestdeejay-design/agent-skills/web-scraper"><img src="https://agentmods.dev/badge/skills/bestdeejay-design/agent-skills/web-scraper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 169 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,420 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00169 $0.01420
Opus 5 $0.00084 $0.00710
Sonnet 5 $0.00034 $0.00284
Haiku 4.5 $0.00017 $0.00142

Measured 7d ago against content hash c2f3dc13b760, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

web-scraper scanned grade A with 1 finding 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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scrape.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `scripts/scrape.py` — скрапер (Python 3 stdlib: `urllib.request`, `html.parser`)
skills/web-scraper/SKILL.md · 90 lines

How it starts

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

Web Scraper

Вежливый скраппинг HTML-страниц в Markdown/JSON на чистом Python 3 stdlib.

Загружай этот скилл когда нужно извлечь данные с веб-страницы: текст, ссылки и таблицы из выбранных секций — для анализа, отчётов или датасетов.

🎯 When to use

Use this skill when:

  • Нужно скачать данные с сайта: текст, ссылки, таблицы из выбранных блоков
  • Просят «скраппинг», «парсинг сайта», «парсер html», «извлечь данные»
  • Нужен быстрый дамп страницы в Markdown или JSON без установки библиотек
  • Нужен вежливый сбор данных с учётом robots.txt и rate limit

Do NOT use when:

  • Нужен полноценный CSS/XPath-парсер с вложенными селекторами — это BeautifulSoup/lxml
  • Нужен обход JS-рендеринга (SPA) — stdlib не исполняет JavaScript
  • Нужен массовый сбор тысяч страниц — согласуй с владельцем сайта и ToS
  • Нужны данные из API — используй прямой HTTP-запрос к API

📦 Files

  • SKILL.md — этот файл
  • scripts/scrape.py — скрапер (Python 3 stdlib: urllib.request, html.parser)

🧰 Usage

# Markdown (по умолчанию), селектор по классу:
python3 skills/web-scraper/scripts/scrape.py --url https://example.com --selector "div.item"

# JSON, селектор по id:
python3 skills/web-scraper/scripts/scrape.py --url https://example.com --selector "div#list" --output json

# Все абзацы страницы:
python3 skills/web-scraper/scripts/scrape.py --url https://example.com --selector "p"

# Локальный файл (без сети, для теста):
python3 skills/web-scraper/scripts/scrape.py --url file:///tmp/test.html --selector "p"

# Увеличить задержку между запросами:
python3 skills/web-scraper/scripts/scrape.py --url https://example.com --selector "article" --delay 2.5

Селектор — простой tag, tag#id или tag.class (например div#list, tr.row). Каждый совпавший элемент становится отдельным пунктом: текст, ссылки и таблицы.

Скрипт соблюдает правила вежливого скраппинга (встроены в код):

  • robots.txt — перед запросом читается robots.txt с origin-хоста; если путь запрещён правилом Disallow, скрипт пропускает страницу с сообщением и кодом 3.
  • User-Agent — честный идентификатор Mozilla/5.0 (compatible; web-scraper/1.0; +educational).
  • Rate limit — задержка между запросами по умолчанию 1.0 с (--delay).
  • Лимит размера — страницы больше 10 МБ отклоняются.
  • ToS — перед массовым сбором проверь условия использования сайта и авторские права на данные; скрипт предназначен для образовательных целей.

Read the full file on GitHub · 90 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 90 lines · 169 tokens per session scan A c2f3dc13b760

Subscribe to this mod's changes

web-scraper is a skill published in the GitHub repository bestdeejay-design/agent-skills (5 stars, last pushed 3d ago), licensed MIT. It adds 169 tokens to every session and 1,420 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.