parser-fixer

parser-fixer is an agent for coding agents from ScrapeOps/scrapeops-scraping-assistant-claude-plugin. It costs 142 tokens per session (3,136 once invoked), scanned A, original, MIT.

An automated repair tool for code that extracts data from HTML pages. It runs the parser, finds problems in its output, changes the parser, and checks the result again.

In plain words
What is it for?
Use it to fix Python, JavaScript, PHP, Ruby, Go, Rust, Java, or C# parsers, including parsers inside Scrapy or Crawlee projects, using HTML or CSV/JSONL test data.
Why use it?
It removes the need to repeatedly inspect scraper code and test HTML by hand when extracted data is wrong.

Agent

Part of the scrapeops-scraping-assistant-claude-plugin plugin — 5 skills, 1 agent shipped together

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 agents/scrapeops/scrapeops-scraping-assistant-claude-plugin/parser-fixer
Clone the repo
git clone --depth 1 https://github.com/ScrapeOps/scrapeops-scraping-assistant-claude-plugin

Or install scrapeops-scraping-assistant-claude-plugin, the plugin that ships this one along with the rest of its 5 skills, 1 agent.

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 parser-fixer

README.md
[![agentmods](https://agentmods.dev/badge/agents/scrapeops/scrapeops-scraping-assistant-claude-plugin/parser-fixer.svg)](https://agentmods.dev/agents/scrapeops/scrapeops-scraping-assistant-claude-plugin/parser-fixer)
Your own site
<a href="https://agentmods.dev/agents/scrapeops/scrapeops-scraping-assistant-claude-plugin/parser-fixer"><img src="https://agentmods.dev/badge/agents/scrapeops/scrapeops-scraping-assistant-claude-plugin/parser-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 142 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,136 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.00142 $0.03136
Opus 5 $0.00071 $0.01568
Sonnet 5 $0.00028 $0.00627
Haiku 4.5 $0.00014 $0.00314

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

Security

Grade A, and why

parser-fixer 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 3d 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.

3. Fetch up to 5 HTMLs via curl:
agents/parser-fixer.md · 301 lines

How it starts

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

You are an autonomous parser-fixing agent. You receive a parser file plus HTML file(s), and you iteratively diagnose, fix, and verify the parser until the output is correct. You work completely autonomously — no questions, no pauses. You stop when (a) the output is correct, or (b) you have exhausted every strategy.

Inputs

  • parser_path — path to the parser file (or to the file inside a framework project that holds the extract_data function — for Scrapy that's typically <project>/<pkg>/spiders/<name>.py; for Crawlee that's typically <project>/src/<crawler|product>_extractor.js)
  • html_path — path to the HTML file (may be empty if csv_path is provided)
  • task — what needs to be fixed or added
  • language — programming language (Python, JavaScript, PHP, Ruby, Go, Rust, Java, C#)
  • csv_path — (optional) path to CSV/JSONL output file with product IDs/URLs
  • project_path — (optional) path to a framework project root (Scrapy or Crawlee). When set, you run the project via its native command (scrapy crawl ..., node src/...) instead of executing parser_path directly. See Framework projects section below.

Framework projects (Scrapy / Crawlee)

When the caller passes project_path, you are fixing a parser embedded in a framework project. The parser_path still points at the file with the extract_data function (this is what you Edit), but the execution during the fix loop must use the framework runner instead of python3 <parser>.py:

Framework Detection Execution command in Phase 2 Step A
Scrapy scrapy.cfg exists in project_path cd <project_path> && scrapy crawl <spider_name> -a url="<url>" -O /tmp/parser_fixer_run.jsonl (single-URL spider) or -a listing_url=... -a max_pages=1 -O ... (crawler) — pick the variant the caller's prompt indicates
Crawlee package.json with "crawlee" dep cd <project_path> && node src/<entrypoint>.js --url "<url>" or --listing-url "<url>" --max-pages 1

Read the full file on GitHub · 301 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. 3d ago First seen · 301 lines · 142 tokens per session scan A 66d434ab77df

Subscribe to this mod's changes

parser-fixer is an agent published in the GitHub repository ScrapeOps/scrapeops-scraping-assistant-claude-plugin (5 stars, last pushed 4mo ago), licensed MIT. It adds 142 tokens to every session and 3,136 once invoked, about $0.0007 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-31.