Scraper and Data Importer Contract + Collector Map

    by Claude Workflow Lab

    1

    Scrapers and importers rot quietly: ids change, runs duplicate rows, values are guessed, and nobody knows what collects what.

    $6

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Maps every data collector in an unfamiliar repo in one pass
    • A 10-rule contract for collectors: one source per module, raw files kept with URL, time and hash
    • Standard-library collector skeleton and a local-LLM extractor with schema checks

    Scraper and Data Importer Contract + Collector Map

    Example session with this skill installed

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

    • Read your context and instructions
    • Compiled the scraper and data

    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.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    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.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 1 day ago

    Software
    Claude Code
    ora compatible agent runtime
    Python 3 (standard library only) for the parser template
    Optional
    Ollama

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables

    Allowed Hosts

    example.com
    Listed1 day ago

    What's inside

    Frequently Asked Questions

    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.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Scraper and Data Importer Contract + Collector Map on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Data & Databases

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.