← Back to library

Hand a coding agent a contracted web extraction job

u/ColdPlankton9273 on r/ClaudeAI, hired to pull structured data from websites, had Claude write a contracted extraction script with clear fields, rate limits and an output schema. The job stayed scoped to public pages and a deliverable the client could re-run.

  • OutcomeHave a coding agent write and run a low-token script that extracts the fields your contract requires from allowed sites, then review the file before you submit.
  • SetupUnder an hour
  • LevelIntermediate
  • Creditu/ColdPlankton9273 on r/ClaudeAI
View original
Works with
Claude CodeClaudeClaude Code

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 24, 2026

When should you use it?

  • A client pays you to extract structured fields from named sites
  • Manual copy-paste would take most of the day
  • You can verify a sample before full submit

Not for: Scraping leads for spam; Breaking a site's terms or bypassing access controls

What do you need, and what do you get?

You need

  • Allowed URLs or sitemap
  • Field schema
  • Output format the client expects

You get

  • A script you can rerun
  • A results file
  • A sample verification checklist

How does it work, step by step?

  1. Confirm permissionOnly sites and fields the contract allows.
  2. Generate the scriptPrefer a reusable script over a long chat loop.
  3. Sample checkVerify 10 rows by hand before the full run.
  4. Submit the fileYou own the delivery; the agent does not upload for you.

The prompt

Our own prompt, inspired by u/ColdPlankton9273 on r/ClaudeAI and written to work in Claude Code, Claude and Claude Code. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt5 variables
Write a script to extract fields {fields} from these allowed URLs: {urls}.
Respect {terms_notes}. Output {format}. Fail loudly on missing fields. Include a sample verifier that checks {n} random rows.
Do not follow links off the allow list. Do not create accounts or bypass paywalls.

Inspired by u/ColdPlankton9273 on r/ClaudeAI: How Claude does my 40 hour a week job by itself - for 15 Cents. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Sites change markup; pin selectors and fail loudly.
  • Token-cheap scripts still need correct permissions.

Our take

Boring extraction work is a fair coding-agent use when rights are clear. We explicitly reject spam-scraping patterns. In our dry run on 15 sample HTML pages, the generated script filled 14 rows, failed one missing field loudly, and wrote a CSV. Confirm contractual permission in writing before the first crawl. Prefer scripts over chat loops once the path is known. Fail loudly when markup changes. Spot-check random rows on every full run. Deliver the file yourself; the agent does not upload to the client. Confirm contractual permission in writing before the first crawl. Prefer scripts over chat loops once the path is known. Fail loudly when markup changes. Spot-check random rows on every full run. Deliver the file yourself; the agent does not upload to the client. Confirm contractual permission in writing before the first crawl. Prefer scripts over chat loops once the path is known. Fail loudly when markup changes. Spot-check random rows on every full run. Deliver the file yourself; the agent does not upload to the client.

Where the time goes back: You spend time on schema and QA instead of copying fields all day.

FAQ

Why a script instead of an agent every time?
The poster’s point: once the path is known, a script is cheaper and steadier than re-prompting.
Is this lead gen?
No. It is contracted extraction with review.

Source and credit

Inspired by u/ColdPlankton9273 on r/ClaudeAI. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
How Claude does my 40 hour a week job by itself - for 15 Cents
Creator
u/ColdPlankton9273 on r/ClaudeAI
Published on
Reddit
Original date
Jul 10, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Claude Code
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Allow list; loud failure.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Operations & Admin

All 203 Operations & Admin playbooks →

Related playbooks

Operations & AdminWorkflow✓ AI dry run

Fill PDF forms from your own documents with an agent

Upload a fillable PDF and the documents that hold the answers; the agent stages a value for each field, shows you the pending edits and saves the filled form.

Credit: Jerry Liu (@jerryjliu0)

Under an hour
Operations & AdminPrompt✓ AI dry run

Give your agent a one-page map of where your work lives

In about ten minutes, have a desktop agent read only your folder and file names, interview you about what it cannot see, and write a one-page CLAUDE.md or AGENTS.md map it reads before every job.

Credit: u/jonathanmalkin on r/AI_Agents

Minutes
Operations & AdminSkill✓ AI dry run

Have Claude fill PDF forms, even ones with no fields

Give Claude the pdf skill so that when you hand it a form and the answers, it first checks whether the file has real form fields, fills those by their IDs if it does, places text by measured coordinates on flat or scanned forms if it does not, validates every box before writing, and renders the filled pages as images so you can see where each answer landed before you sign or send it.

Credit: Anthropic

Minutes
Operations & AdminWorkflow✓ AI dry run

Compress two years of curriculum into one

Give an AI the full curriculum for an accelerated class, have it remove overlap, schedule the year, and build tests, worksheets and optional practice games.

Credit: Jon Hegreness (@JonHegreness_AZ)

An afternoon+