web-scrape

A web-page extraction skill that collects text, HTML, or attribute values from elements selected with CSS selectors. CSS selectors are patterns used to identify parts of a webpage, such as links, headings, or images.

In plain words
What is it for?
Use it to scrape article text, links, image URLs, table cells, or other structured page data. It accepts a webpage URL, a CSS selector, an extraction mode, and an optional result limit.
Why use it?
It removes the need to manually copy matching information from web pages. You can target only the elements you need and limit how many results are returned.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/bug-ops/zeph/web-scrape
Any agent
npx skills add bug-ops/zeph --skill web-scrape
Clone the repo
git clone --depth 1 https://github.com/bug-ops/zeph

Made for: Claude Code, Codex.

Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,764 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00082 $0.02764
Opus 5 $0.00041 $0.01382
Sonnet 5 $0.00016 $0.00553
Haiku 4.5 $0.00008 $0.00276

Measured 2d ago against content hash dcdc65e0aae1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

web-scrape 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 2d 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.

.zeph/skills/web-scrape/SKILL.md · 292 lines

How it starts

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

Web Page Data Extraction

Extract structured data from web pages by specifying a URL, a CSS selector to target elements, and an extraction mode.

Command Format

{"url": "URL", "select": "CSS_SELECTOR", "extract": "MODE", "limit": N}

Parameters

Parameter Required Description
url Yes Full URL of the page (use HTTPS)
select Yes CSS selector to target elements
extract No Extraction mode: text (default), html, or attr:NAME
limit No Maximum number of elements to return

Extract Modes

Mode Description Example Output
text Inner text content, stripped of HTML tags Hello World
html Inner HTML markup <strong>Hello</strong> World
attr:href Value of the specified attribute https://example.com
attr:src Value of the src attribute /images/logo.png
attr:class Value of the class attribute btn btn-primary
attr:id Value of the id attribute main-content
attr:data-* Value of any data attribute 42

CSS Selector Reference

Basic Selectors

Selector Description Example
element All elements of that type p, div, h1, table
.class Elements with a specific class .article, .btn-primary
#id Element with a specific ID #content, #main
* All elements *
element.class Element with a specific class div.container, p.intro
element#id Element with a specific ID div#header

Attribute Selectors

Selector Description Example
[attr] Has the attribute [href], [data-id]
[attr=val] Attribute equals value exactly [type="text"], [lang="en"]
[attr~=val] Attribute contains word (space-separated) [class~="active"]
[attr|=val] Attribute starts with value or value followed by - [lang|="en"]
[attr^=val] Attribute starts with value [href^="https"]
[attr$=val] Attribute ends with value [href$=".pdf"]
[attr*=val] Attribute contains value anywhere [href*="example"]

Read the full file on GitHub · 292 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. 2d ago First seen · 292 lines · 82 tokens per session scan A dcdc65e0aae1

Subscribe to this mod's changes

web-scrape is a skill published in the GitHub repository bug-ops/zeph (57 stars, last pushed 8d ago), licensed MIT. It adds 82 tokens to every session and 2,764 once invoked, about $0.0004 per session on Opus 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-08-30.