Skip to main content

Command menu

Jump to a page or search the catalog

AI Tools & Scripts

Scraper and Data Importer Contract + Collector Map

Map every scraper and importer in a repo, then build new collectors to a 10-rule contract: stable ids, provenance, idempotent re-runs, gaps instead of guesses, polite and safe fetching. Includes a stdlib parser template and a local-LLM extractor.

$6.00

What you get: 1 file · 8.66 KB · ZIP

See purchase options

Product description

Scrapers and importers rot quietly: ids change, runs duplicate rows, values are guessed, and nobody knows what collects what. This skill first maps what exists and then holds every new collector to a strict contract.

What is inside: - SKILL.md - step 1, a map of every collector in an unfamiliar repo; the 10-rule contract (one source per module, stable never-reused ids, provenance on every fact, idempotent re-runs, gaps not guesses, polite fetching, safe fetching against SSRF, secrets in env only, rights and excerpt limits, self-test plus run summary); a step-by-step build guide; local AI extraction only where rules cannot read the source; handing data in; a do-not list; and an Adapt-to-your-setup section. - scripts/parser_template.py - standard-library collector skeleton: polite GET with retries, raw file kept with URL, time and sha256, a pure parse function, gaps list, idempotent output, one summary line, and a --test mode with no network. - scripts/llm_extract.py - extracts values from a Markdown chunk with a local Ollama model, schema-constrained with one retry, and drops any value whose quote is not literally in the chunk; has a fake-model --test mode.

Who it is for: developers and data engineers who ingest from web pages, APIs or PDFs and want repeatable, auditable data. Needs Python 3; the extractor needs a local Ollama server, nothing is sent to a cloud service. It is also part of the Production Ops: DB, Scrapers, Trading Bot pack at a lower per-skill price.

Example request

Add a collector for a public price-list page to our repo, and first show me what collectors we already have.

Example result

Example on a fictional repo (a small catalog-sync project).

Step 1, map: grep of fetch/requests/urlopen and the source registry finds 4 collectors: catalog_api.py (JSON API, API key in CATALOG_KEY), prices_csv.py (daily file importer), news_rss.py, and an old one-off pdf_oneoff.py that is not registered anywhere. Table: source, module, trigger, output store, id scheme, idempotent yes/no. Two findings: news_rss.py ids are random UUIDs, so reruns duplicate rows; pdf_oneoff.py writes guessed values with no provenance.

Step 2, new collector from scripts/parser_template.py, renamed SRC_ID=pricelist: - id = sha256 of the normalised item URL; origin_url on every value; fetch_time and raw sha256 stored beside the raw file. - polite: descriptive User-Agent with a contact address, 0.5 s gap per host, retry only timeouts, 429 and 5xx. - ranges and "approx." values go to gaps with a reason, never into data. - python3 -I pricelist.py --test prints "self-test OK" with canned input and no network.

Run twice: second run reports listed 120, new 0, skipped 120, errors 0, so it is idempotent. Live run waits for your yes. For the PDF part, llm_extract.py would run against a local Ollama model and drop every value whose quote is not found in the chunk.

Requirements

  • Claude Code or a compatible agent runtime
  • Python 3 (standard library only) for the parser template
  • Optional: a local Ollama server for the extraction script

How to install

Unzip into your Claude Code skills folder (~/.claude/skills/ or .claude/skills/ in a project) and start a new session; the skill loads by its description.

What you get

1 file · 8.66 KB

  • data-collectors-map.zipZIP · 8.66 KB
LicenseCommercial use allowed
PublishedDec 3, 2026
File size8.66 KB
File formatZIP
Versionv1.0

Tags

claude codeclaude skillai agent
C
Claude Workflow Lab

Frequently asked questions

Do I get access instantly?

Yes. This is a digital product - you can download it right after checkout, straight from your library.

Can I use it for commercial projects?

Yes. Commercial use is allowed: use it in your own business and in things you sell. You may not resell or redistribute the file itself.

What's your refund policy?

You can request a refund within 30 days. If something isn't right, request it from your order and the Getly team reviews it.

What file formats and sizes will I get?

You'll download 1 file - ZIP - 8.66 KB in total.

Do I get free updates?

Yes - when the seller ships a new version, you can re-download the latest files from your library at no extra cost. Check the changelog for recent updates.

Price

$6.00