Hacker News scraper: search HN stories, comments, Ask HN and Show HN by keyword, points and date via the public HN Search API by Algolia, or turn the monthly Who is hiring? thread into jobs with company, location, remote flag and salary. Only-new-items mode. $0.15 per 1,000 items.
Unreleased: invalid input no longer crashes (2026-11-04, local, not built or pushed; based on cloud build 1.0.10)
Fix: input that is not a JSON object (a string, number or list) crashed the run with AttributeError and exit 91. It now ends with exit 0 and one free status row: Invalid input, nothing was fetched or charged: the input must be a JSON object, got <type>.
Fix: schema-valid or wrong-type values that crashed with exit 91 before anything was fetched now end the same way (exit 0, one free status row, charged: false, no RUN_SUMMARY), with the reason <field> has the wrong type (<error>). Covered: maxItems, stateStoreName, tags, minPoints, minComments, since, until, postedWithinDays (search mode) and keywords, threads (whoIsHiring mode). A since/until that is not a date (e.g. "abc") also ends this way instead of crashing.
The check repeats the exact conversions the run makes, before any request; valid input behaves exactly as before. HTTP and API errors are unchanged.
New unit tests: tests/test_invalid_input.py. apify stays pinned to >= 4.1.0, < 4.2.0. Memory unchanged (default 256 MB, min 128 MB).
1.0 postedWithinDays overflow fix (2026-11-04, local, not built or pushed; based on cloud build 1.0.8)
Fix: a large postedWithinDays (the schema has a minimum of 1 and no maximum, e.g. 1000000) crashed the run with OverflowError and exit 91 before anything was fetched. It is now capped at 36500 days (100 years), which on HN means "all time". Values up to 36500 behave exactly as before.
requirements.txt: apify is pinned to >= 4.1.0, < 4.2.0 (was >= 4.0.0, < 5.0.0).
New unit tests: tests/test_posted_within_days.py.
1.0 smaller default (2026-11-02, local, not built or pushed; based on cloud build 1.0.7; actor.json version unchanged: 1.0)
Smaller default:maxItems schema default and code fallback (my_actor/main.py, used when maxItems is missing, empty or 0) are now 50 (were 100), and the input schema now has a maxItems prefill of 50 (there was none). {} and the prefilled input save at most 50 items = at most $0.0075 at $0.00015 per item, under the $0.01 Store test limit.
The maxItems schema description now says "Default 50 (about $0.0075)".
Docs: README input table (maxItems default 50) and a new first row in the pricing examples table ({} or the prefill: at most 50 items, at most $0.0075).
Build 1.0.7 has no unit tests; none added or changed. This file is new.