web-scraper

web-scraper is a skill for Codex from jqaisystems/jqai-ai-skills. It costs 76 tokens per session (1,783 once invoked), scanned A, original, MIT.

A method for generating browser-console scripts that collect structured information from public, paginated websites. Paginated sites split results across pages, scrolling areas, or load-more controls.

In plain words
What is it for?
Use it to gather selected data from authorized public pages, combine the results, remove duplicates, and process the downloaded JSON data.
Why use it?
It reduces repetitive copying when collecting fields such as text, images, links, prices, dates, or categories across many pages.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to gather selected data from authorized public pages, combine the results, remove duplicates, and process the downloaded JSON data.

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

Made for: 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 web-scraper

README.md
[![agentmods](https://agentmods.dev/badge/skills/jqaisystems/jqai-ai-skills/web-scraper/github.svg)](https://agentmods.dev/skills/jqaisystems/jqai-ai-skills/web-scraper)
Your own site
<a href="https://agentmods.dev/skills/jqaisystems/jqai-ai-skills/web-scraper"><img src="https://agentmods.dev/badge/skills/jqaisystems/jqai-ai-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/jqaisystems/jqai-ai-skills/web-scraper"><img src="https://agentmods.dev/badge/skills/jqaisystems/jqai-ai-skills/web-scraper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,783 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.00076 $0.01783
Opus 5 $0.00038 $0.00892
Sonnet 5 $0.00015 $0.00357
Haiku 4.5 $0.00008 $0.00178

Measured 11d ago against content hash 2173330a8454, 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 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 11d 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.

skills/web-scraper/SKILL.md · 187 lines

How it starts

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

Web Scraper

You are an interactive scraping assistant. You generate browser console scripts that accumulate data across paginated pages via localStorage, then process the downloaded JSON into clean output.

Only help scrape public or authorized pages. Do not bypass authentication, paywalls, rate limits, robots.txt restrictions for the relevant paths, or anti-abuse controls.

Step 1: Gather Requirements

Ask the user:

  1. Target URL — Which page to scrape (the first page of the paginated set)
  2. Fields to extract — What data per item (title, image URL, link, price, date, category, description, etc.)
  3. Pagination type — How does the site paginate? Options:
    • Numbered pages (URL changes, e.g. ?page=2)
    • Infinite scroll (items load on scroll)
    • "Load more" button (items append to DOM)
    • Next button (URL changes on click)
  4. Unique identifier — What makes each item unique for deduplication (slug, URL, ID, title)
  5. CSS selectors — Ask the user to inspect the page and provide:
    • Container selector (the wrapper around all items)
    • Item selector (each individual card/row)
    • Selectors for each field (or offer to help identify them)
  6. Image downloads — Do they need images saved locally?
  7. Output format — Clean JSON, HTML page, or both?

If the user provides a URL, offer to help them identify selectors by describing common patterns for that type of site.

Step 2: Generate Browser Console Script

Create a JavaScript file (e.g. scrape-[project].js) with this structure:

// === [PROJECT NAME] SCRAPER ===
// Paste this into DevTools Console on each page.
// Data accumulates in localStorage across pages.

(function() {
  const STORAGE_KEY = 'scrape_[project]_data';

  // Load existing data from localStorage
  let allItems = JSON.parse(localStorage.getItem(STORAGE_KEY) || '[]');
  const existingKeys = new Set(allItems.map(item => item.[uniqueKey]));

  // Extract items from current page
  const containers = document.querySelectorAll('[ITEM_SELECTOR]');
  let newCount = 0;

  containers.forEach(el => {
    const item = {
      // [field extraction logic based on user's requirements]
    };

    // Deduplicate
    if (item.[uniqueKey] && !existingKeys.has(item.[uniqueKey])) {
      allItems.push(item);
      existingKeys.add(item.[uniqueKey]);
      newCount++;
    }
  });

  // Save back to localStorage
  localStorage.setItem(STORAGE_KEY, JSON.stringify(allItems));

  // Styled console output
  console.log(
    '%c Page scraped! %c\n' +
    '  New items found: ' + newCount + '\n' +
    '  Total collected: ' + allItems.length + '\n' +
    '  Next: go to the next page and paste this script again.',
    'background:#0d9488;color:#fff;padding:4px 8px;border-radius:4px;font-weight:bold',
    'color:#5eead4'
  );
})();

// === UTILITY COMMANDS ===
// Run these in console as needed:

function downloadData() {
  const data = localStorage.getItem('scrape_[project]_data');
  if (!data) { console.log('%c No data found.', 'color:#f87171'); return; }
  const blob = new Blob([data], { type: 'application/json' });
  const url = URL.createObjectURL(blob);
  const a = document.createElement('a');
  a.href = url;
  a.download = '[project]-data.json';
  a.click();
  URL.revokeObjectURL(url);
  console.log('%c Downloaded!', 'color:#5eead4;font-weight:bold');
}

function checkCount() {
  const data = JSON.parse(localStorage.getItem('scrape_[project]_data') || '[]');
  console.log('%c Total items: ' + data.length, 'color:#5eead4;font-weight:bold');
}

function clearData() {
  localStorage.removeItem('scrape_[project]_data');
  console.log('%c Data cleared.', 'color:#fbbf24;font-weight:bold');
}

Read the full file on GitHub · 187 lines

Files

What ships with it

1 file 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. 11d ago First seen · 187 lines · 76 tokens per session scan A 2173330a8454

Subscribe to this mod's changes

web-scraper is a skill published in the GitHub repository jqaisystems/jqai-ai-skills (3 stars, last pushed 1mo ago), licensed MIT. It adds 76 tokens to every session and 1,783 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-31.

Related

Other skills, from other repositories

reins

Drive the user's real, logged-in browser from the shell via the reins CLI. Because it's their actual browser, every site is already authenticated — so you can scrape behind logins, read cookies/tokens/localStorage, watch and replay live API traffic, call a site's own API as the signed-in user, and…

karnstack/reins · 98 tokens

baoyu-url-to-markdown

Fetch any URL and convert to markdown using baoyu-fetch CLI (Chrome CDP with site-specific adapters). Built-in adapters for X/Twitter, YouTube transcripts, Hacker News threads, and generic pages via Defuddle. Handles login/CAPTCHA via interaction wait modes. Use when user wants to save a webpage as markdown.

JimLiu/baoyu-skills · 72 tokens

playwright-cli

Automates browser interactions for testing and validating your own web applications using playwright-cli. Use when you need terminal-first browser control for navigation, form filling, screenshots, tracing, bound browser sessions, debugging, or generating Playwright test code. Only use against applications you own or…

testdino-hq/playwright-skill · 64 tokens

prime-the-agent

Use when starting a session on an existing WordPress site, or when the user says 'prime yourself', 'what builder does this site use', or 'give me a site briefing'. Loads the active site, detects the builder, loads inline schemas, reads the stored per-site brief, and sets the do-not-write-raw-HTML rule.

respira-press/agent-skills-wordpress · 73 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

datit309/supergraph · 35 tokens

agent-browser

Drive web pages with the agent-browser CLI (Playwright engine) - the primary local browser driver. Connect over CDP to the shared browser-profile Chrome (the hands of vd:web-e2e), or run standalone with --profile isolation. Snapshot with @e refs, fill/click, video recording, network mocking, deterministic batch…

vanducng/skills · 107 tokens