ИИ-инструменты и скрипты
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.
Что вы получите: 1 файл · 8.66 KB · ZIP
Варианты покупкиОписание товара
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.
Что вы получите
1 файл · 8.66 KB
- data-collectors-map.zipZIP · 8.66 KB
ИИ-инструменты и скрипты
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.
Теги
Частые вопросы
Доступ открывается сразу?
Да. Это цифровой товар - скачать его можно сразу после оплаты, прямо из своей библиотеки.
Можно ли использовать в коммерческих проектах?
Да. Коммерческое использование разрешено: в своём бизнесе и в том, что вы продаёте. Перепродавать и распространять сам файл нельзя.
Какие условия возврата?
Запросить возврат можно в течение 30 дней. Если что-то не так, оформите заявку в своём заказе - её рассмотрит команда Getly.
Какие форматы и размеры файлов я получу?
Вы скачаете 1 файл - ZIP - всего 8.66 KB.
Обновления бесплатны?
Да - когда продавец выпускает новую версию, вы можете бесплатно скачать актуальные файлы из своей библиотеки. Последние изменения смотрите в истории версий.
Цена
$6.00



