Webpage Hash Snapshot
Pricing
$0.01 / actor start
Webpage Hash Snapshot
Pricing
$0.01 / actor start
Rating
0.0
(0)
Developer
Eichan Jolly
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
20 days ago
Last modified
Categories
Features
Share
Webpage Content Hash Snapshot
Fetch one public HTML page, extract its non-hidden static text, normalize whitespace, and generate a deterministic SHA-256 fingerprint. Schedule it repeatedly to capture one clean content snapshot per run.
Who it is for
Site owners, release watchers, researchers, and operations teams who want simple snapshots of publicly visible HTML text without writing a site-specific scraper.
Input example
{"url": "https://example.com/"}
To compare against a previous run, provide its exact contentHash:
{"url": "https://example.com/","previousHash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
| Field | Required | Description |
|---|---|---|
url | Yes | One public HTML URL. The form prefills one page. |
previousHash | No | A previous run's 64-character SHA-256 hex digest. |
Output example
One dataset row per successful run (hash shown is illustrative):
{"url": "https://example.com/","contentHash": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef","textLength": 125,"changed": null,"checkedAt": "2026-11-01T04:00:00Z"}
url: the input URL.contentHash: lowercase SHA-256 hash of the normalized UTF-8 text.textLength: Unicode character count of that same normalized text.changed:trueorfalseifpreviousHashwas supplied; otherwisenull, meaning not compared.checkedAt: UTC timestamp captured at run start.
How hashing works
- Download the HTML with one HTTP(S) GET request, following public HTTP(S) redirects.
- Decode using the declared response charset, falling back to UTF-8.
- Parse static HTML text, skipping scripts, styles, head metadata, templates, SVG,
noscript, and explicitly hidden elements. - Collapse whitespace runs to single spaces, then hash the resulting text as UTF-8 bytes.
For an unchanged response, the normalized content should produce the same hash. Dynamic banners, timestamps, navigation, and other visible content can still create legitimate differences even when the primary article has not changed.
Scheduling use case
Schedule once a day to collect a historical series of content hashes. A separate automation can read the last run's contentHash, pass it back as previousHash, and respond when the new output has changed: true. Scheduling alone does not automatically retrieve previous run state; without the comparison value, changed is always null.
Limits and behavior
- One HTML page per run; 2 MB maximum downloaded HTML, 20-second request timeout.
- Public IP destinations and standard HTTP(S) ports 80/443 only; local/private-network URLs are rejected.
- No login, cookies, proxy service, browser, JavaScript execution, PDF extraction, CSS layout engine, or external API keys.
- The parser uses HTML tag/inline-hidden heuristics; it cannot fully apply external CSS, compute visibility, render JavaScript-only pages, or read shadow DOM.
- If the HTML is empty/non-HTML or contains no extractable text, the run fails with a simple error rather than emitting a misleading empty fingerprint.
- No multi-page crawling, persistent cross-run state, or automatic alerts. Some public sites block data-center IPs or change visible nonessential text frequently.
- Failed runs print plain-English
ERROR:messages and exit unsuccessfully, without tracebacks. - The platform supplies its own run storage token; it is used only to read the Actor's own input and write its default dataset, with no user-supplied token.
Run / deploy
Cloud: Upload this entire folder as one Apify Actor project, build, and run via the Console-generated input form. Cloud storage uses the built-in Python urllib library with Apify-provided environment variables; the Apify SDK is not installed.
Local: Create storage/key_value_stores/default/INPUT.json with the example input and run:
$python src/main.py
The result appears in storage/datasets/default/ as an indexed JSON file. For Docker use, mount a local storage/ directory if running outside the Apify platform.
Store placement / pricing suggestion
- Category: Automation (primary)
- Additional category: Developer tools
- Suggested monetization: Pay per event, per Actor run (e.g. provisional $0.003/run
actor-startevent), because each successful run produces one fingerprint. Confirm real unit economics before release. - Billing status: The Actor does not currently charge PPE events; this is an intended pricing model, not an implemented billing feature. Wire/test the Apify event charge separately before paid publication, or initially use pay-per-usage.