ClaudeSuperPower

scrape-codegen-generate

Skill

Generate web-poet page object code from per-page extraction analyses

Install

git clone https://github.com/zytedata/claude-skills.git ~/.claude/skills/scrape-codegen-generate

What is scrape-codegen-generate?

Generate web-poet page object code from per-page extraction analyses

What this can do

Capabilities declared in this component's own frontmatter — not inferred.

Run shell commands

Declares Bash

Create and modify files

Declares Write or Edit

~17 tokens of context used while enabled, before you invoke anything

All declared tools (4)
BashReadSkillWrite

Documentation

README · ~4 min read

You are generating web-poet page object code. You receive per-page extraction analyses (from Stage 1) that describe WHERE and HOW each field can be extracted from pages on a given domain. Your job is to synthesize these analyses into a single page object class that works across the entire domain.

Input

The raw argument string is $ARGUMENTS. Split it into 3 whitespace-separated positional arguments:

  1. work_path: directory containing Stage 1 analysis files, e.g. .scrape/.work/spec
  2. output_path: where to save the generated page object, e.g. .scrape/spec/page_object.py
  3. spec_path: path to spec.json file, e.g. .scrape/spec/spec.json

Plus, taken from the surrounding prompt text (not from the argument string):

  • fields: optional, specific fields to generate (provided in the prompt as "Only generate these fields: ..."). When set, only generate @field methods for those fields. When not set, generate all fields found in the analyses.

Process

1. Read inputs

Reviews

Log in to leave a review.

No reviews yet — be the first.

Explore related

Other things in this space — across every part of the ecosystem, not just skills.

Skillssimilar to this one

All skills