Implement Scraper Feature

A guide for adding a new data field to a CSFD.cz movie scraper by finding the field on the page, defining its data shape, parsing it, and connecting it to the service.

In plain words
What is it for?
It is for extracting additional movie information, such as a budget or studio, and adding that information to the scraper's typed output.
Why use it?
It provides a fixed path for extending the scraper while keeping page parsing in separate helper functions. This reduces the chance of mixing extraction logic into the service or returning inconsistent data.

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/bartholomej/node-csfd-api/implement_scraper_feature
Any agent
npx skills add bartholomej/node-csfd-api --skill implement_scraper_feature
Clone the repo
git clone --depth 1 https://github.com/bartholomej/node-csfd-api

Made for: Claude Code, Codex.

Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 455 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00036 $0.00455
Opus 5 $0.00018 $0.00228
Sonnet 5 $0.00007 $0.00091
Haiku 4.5 $0.00004 $0.00046

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

Security

Grade A, and why

Implement Scraper Feature 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 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.

Makes network callslowCapability

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

- **Action**: Use `curl` or open the page in a browser to inspect the element.
.agent/skills/implement_scraper_feature/SKILL.md · 62 lines

What it actually says

Implement Scraper Feature

This skill guides you through the process of extracting a new piece of data from CSFD.cz.

1. Analyze the DOM

First, you need to find where the data is located in the HTML.

  • Action: Use curl or open the page in a browser to inspect the element.
  • Goal: Identify a unique CSS selector (class, ID, or structure).

2. Update the DTO (Data Transfer Object)

Define the shape of the new data.

  • File: src/dto/[entity].ts (e.g., src/dto/movie.ts)
  • Action: Add the new field to the interface.
    export interface CSFDMovie {
      // ... existing fields
      newField: string | null;
    }
    

3. Create a Helper Function

CRITICAL: Never write parsing logic inside the Service. Always use a helper.

  • File: src/helpers/[entity].helper.ts

  • Action: Create a pure function exported from the helper file.

    import { HTMLElement } from 'node-html-parser';
    
    export const getNewField = (el: HTMLElement): string | null => {
      const node = el.querySelector('.some-class');
      return node ? node.innerText.trim() : null;
    };
    

4. Integrate into Service

  • File: src/services/[entity].service.ts
  • Action: Call the helper function inside the build[Entity] method.
    // inside buildMovie method
    return {
      // ...
      newField: getNewField(el)
    };
    

5. Verification

  • Action: Run the demo script to see if the data appears.
  • Command: npm run demo (you might need to modify demo.ts to log the new field).
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 · 62 lines · 36 tokens per session scan A 644831ca7e67

Subscribe to this mod's changes

Implement Scraper Feature is a skill published in the GitHub repository bartholomej/node-csfd-api (60 stars, last pushed 9d ago), licensed MIT. It adds 36 tokens to every session and 455 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

lint-js

Lint JS/TS code only. Use before opening a PR when only JavaScript or TypeScript files were changed (no Rust).

denoland/deno · 29 tokens

electron-node-upgrade

Guide for performing Node.js version upgrades in the Electron project. Use when working on the roller/node/main branch to fix patch conflicts during e sync --3. Covers the patch application workflow, conflict resolution, analyzing upstream Node.js changes, building, running the Node.js test suite, and proper commit…

electron/electron · 69 tokens

git-cleanup

Clean up local git branches and remotes accumulated from PR reviews. Use when the user asks to clean branches, remove stale remotes, or tidy up the local git state.

alibaba/page-agent · 39 tokens

Shade dropdown surface contract

DropdownMenu, Select, and Popover share one visual recipe (bg-surface-elevated-2 + border-border/60 dark:border-border/30 + shadow-md). Change them together. Trigger when editing any of those three Shade files.

TryGhost/Ghost · 54 tokens

Shade ShadCN install

Guardrails for running pnpm dlx shadcn@latest add in Shade — never overwrite existing components, fresh branch first, swap raw colours for semantic tokens after integrating. Trigger when the user proposes a shadcn add, or when a fresh ShadCN-shaped file lands in apps/shade/src/components/ui.

TryGhost/Ghost · 72 tokens

Shade use primitives

Replace bare divs that only carry flex/grid/gap utilities with Shade primitives (Stack, Inline, Box, Grid, Container, Text). Use semantic gap="md" instead of gap-4. Trigger when editing TSX in Shade-consuming apps.

TryGhost/Ghost · 54 tokens