# Changelog of EURES Job Vacancies Scraper (EU Job Mobility Portal) (`stone_jadex/eures-jobs-scraper`) Actor

- **URL**: https://apify.com/stone_jadex/eures-jobs-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/stone_jadex/eures-jobs-scraper.md

## Changelog

### Unreleased

- Fix (QA, same bug as companies-house 6f029cf): warnings were never written to the run log online. The entry passed `Actor.log || console`, but `Actor.log` is undefined in apify 3.7.2 and `console.warning` does not exist, so every `log.warning?.()` did nothing. main.js now imports `log` from apify and passes it to run(). run(), http.js `createClient` and billing.js `createBiller` default to that log instead of console, so robots, refusal, network and pushData-retry warnings are actually emitted. Code only; output fields unchanged. New test test/real-apify-log.test.js uses the real apify export with no mocked Actor.log: it asserts that `log.warning` exists and `Actor.log` is undefined, that src/ has no `Actor.log` and no console default, and it spies on the real `log.warning` for a billing retry and a refused URL. Redlogs 86-real-apify-log (red/green; .mut.log restores the old entry and goes red).

### 0.1.0 (2026-10-26)

- First version: EURES public search API, 50 jobs/request, 10 s crawl delay, PPE `job` $0.000495, ELA attribution on every row, ajv row validation, sensitive-identifier redaction.

### 0.2.0 (unreleased)

- Optional detail tier `scrapeDetails` (public `/public/jv/id/{id}` endpoint, 10 s spacing), new PPE event `job-detail` (price TBD placeholder).
- Allow-list narrowed to robots.txt, the search path and the detail path.
- `includeContactPersons` switch (default off): text e-mails/phones and named personContacts output as printed when on, masked when off; IBAN/id/DOB always redacted.
- Stop paths: free notice on every non-failed stop (0 results, maxItems, time limit…); FAILED on invalid input or bad first page; run-time guard.
- First HTTP 403 (search or detail) stops the run without retry or backoff.
- TITLE scope verified live (fixture + ROBOTS.md); keyword guard stops uncharged when page 1 has no keyword hit.
- README: like-for-like 1,000-job cost table, snapshot date on vacancy count, unmeasured throughput removed, detail-tier compute cost.
- contactUrls split: business links/role mailboxes always; personal or unclassifiable links follow includeContactPersons.
- Role mailboxes always kept as printed in text and contactEmails; personal/undetermined addresses follow includeContactPersons.
- U1: detail tier hidden (DETAIL_TIER_ENABLED=false) until job-detail is priced; scrapeDetails:true ignored with a warning; job-detail removed from pay_per_event/actor.json/README.
- U4: keyword guard re-checks with stem match and numberRecords comparison before stopping.
- README Known limitations: amount, headcount, time, Job-ID and space-separated second number glue cases listed (verified against findPhones).
- Tests lock extendTail's NON_PHONE_WORDS check and 15-digit cap (mutation red: redlogs/77).
- README phone check: 'the one miss' corrected to two truncations (345 and -3951).
- Decided: 'Tel: +49 30 12345 6789 1234' outputs '+49 30 12345 6789' (whole number is 17 digits, over the 15-digit cap); locked by test (mutation red: redlogs/79).
- README: 'Is it legal to scrape EURES?' promoted to its own ## section; readme.test.js updated (red: redlogs/80).
- README year limitation notes the ASCII spelling eroeffnet is not in NON_PHONE_WORDS (red: redlogs/81).
- Review 3a74d2c item 1: `setStatusMessage` (wrapped in try/catch; a throwing call only logs a warning) on every end path: rows, empty result, every early stop, failure and invalid input. One function `buildStatusMessage` builds the text; the same text is written to new field `OUTPUT.statusMessage` and used for `Actor.fail` on FAILED runs (red: redlogs/status-message.red.log; mutation dropping the status call: redlogs/status-message.mutation-no-status-call.log).
- Review 3a74d2c item 2: when the first search page answers an HTTP error other than 403/404/410 (5xx, 429, network error), so errors > 0 and 0 rows, the run now FAILS: OUTPUT (`failed: true`, `stopReason: errors`) and the status message are written first, then the run throws. A normal empty result (errors = 0) still SUCCEEDS with nothing charged; 403 handling (`blocked-403`, SUCCEEDED) and later-page errors after rows were delivered are unchanged (red: redlogs/home-http-fail.red.log; mutation dropping the throw: redlogs/home-http-fail.mutation-no-throw.log).
- Review 0165135: when the first search page answers HTTP 404 or 410 and 0 rows were delivered, the run now FAILS (`failed: true`, `stopReason: not-found`): OUTPUT and the status message (built by `buildStatusMessage`, `setStatusMessage` in try/catch) are written first, then the run throws; nothing charged. Why: a 404/410 on the very first request means the search endpoint moved or was withdrawn, so a SUCCEEDED run with 0 rows would hide a broken actor. The actor is not yet published on the Apify Store, so this is not a breaking change for any user. 404/410 on page 2+ after rows were delivered still SUCCEEDS (red: redlogs/82-home-404-410.red.log; mutation dropping the throw: redlogs/82-home-404-410.red-mutation-no-throw.log).
- Review 6d8110f: when the first search page answers HTTP 403 and 0 rows were delivered, the run now FAILS (`failed: true`, `stopReason` kept as `blocked-403`): OUTPUT and the status message are written first, then the run throws; nothing charged, still no retry. Why: a 403 on the very first request means EURES refused the actor, and a SUCCEEDED run with 0 rows would hide that. The actor is not yet published, so no user-visible behavior breaks. A 403 after rows were delivered (search page 2+ or detail) still SUCCEEDS with `blocked-403` (red: redlogs/83-home-403.red.log; mutation dropping the throw: redlogs/83-home-403.red-mutation-no-throw.log).
- Review fb02271 low #1: on the invalid-input path the entry block no longer overwrites the already-written status with the raw error text; `Actor.fail` now gets `failMessage(e)`, which returns the `statusMessage` run() attached to the error (identical to `OUTPUT.statusMessage`), falling back to the previous e.message logic (red: redlogs/84-fail-message.red.log; mutation not attaching statusMessage: redlogs/84-fail-message.red-mutation-no-statusMessage.log).
- Review fb02271 low #2: README phone check keeps the 2063fd3 figure (38 of 39, QA report qa/2026-10-26-eures-2063fd3-score.md) and adds the post-fix measurement: QA re-run of de68109 counted 39 of 39 labelled phones (qa/2026-10-26-eures-de68109-score.md); readme-phone-gaps.test.js asserts it (red: redlogs/85-readme-39of39.red.log).
