functionVerified releasev1
normalize_stories
Validate Hacker News records, normalize UTC timestamps and HTTP(S) links, and deduplicate by record identity. Input data stays with the caller.
Interface
Verified contract
Inputs
| Name | Type |
|---|---|
| records | list |
| source_info | dict | None |
Outputs
| Name | Type |
|---|---|
| default | dict |
Exact release
Pinned local call
from spl import SPLClient
result = SPLClient.embedded().call(
"splime://@splime.project/case4-hn/normalize_stories@1",
kwargs={'records': [], 'source_info': {}},
trust=True,
)Review before running. Public bundles contain executable code. Verify the publisher and exact content hash; a virtual environment isolates dependencies, not the operating system.
Evidence
Evidence-backed concepts
- Normalize stories
- Normalize utc timestamps
- Record identity
- Source info
- Validate hacker news records
- Date time
- Key value mapping
- Web requests
History
Public versions
- v110 downloads
Discover
Similar Objects
- hn_topic_digestTurn supplied Hacker News records into an explainable HTML digest in one call: normalize records, apply explicit topic rules, and render a reading list. Returns a notebook-safe HTML fragment by default; full_document=True produces a standalone document. No live fetch or bundled dataset. Runs in the caller's Python environment.
- analyze_titlesApply explicit topic rules and compare document shares in adjacent equal-duration windows. Counts describe the supplied snapshot, not all Hacker News activity.
- fetch_snapshotFetch and normalize a bounded sample of real Hacker News stories through the official API. Explicit feed, item limit, timeout, retries and total time budget. Requires network access and httpx in the caller's environment; returns records and acquisition provenance. No bundled dataset or fallback data.
- rule_validateValidate an arbitrary supported classification table. Supply target_col or y; optional exclusions, categorical columns and split/search options.
- rule_prepareValidate a prepared Case5 table and apply the chronological grouped search preset.