# Changelog of Company Contact Finder: Role Emails, Phones & Socials (`hani-tools/company-contact-finder`) Actor

- **URL**: https://apify.com/hani-tools/company-contact-finder/changelog.md
- **Full Actor documentation**: https://apify.com/hani-tools/company-contact-finder.md

## Changelog

### 0.1 (unreleased, local only)

- Stage 1 scaffold: project structure, input/dataset/output schemas, core modules reused from the SEO audit Actor
  (fetcher, netguard, robots, sitemap, util, spending guard), input and domain normalisation, enrichment-dataset reading.
  Contact extraction and charging are not implemented yet. Not published.
- Stage 2 extraction core: page discovery (multilingual link dictionary, sitemap and path-guess fallbacks, early stop),
  robots.txt checked on every redirect hop, role-email allowlist, junk filter, MX check, opt-out notice detection,
  Cloudflare/obfuscated emails, phones (libphonenumber-js), company socials, JSON-LD/microdata address.
  Charging is still not enabled. Not published.
- Stage 3: pay-per-event charging of `domain-with-contact` (own-domain or free-mail role email with MX only; third-party-only,
  socials/phone/address-only rows are free, new `billable` field), spending-limit guard that never exceeds the run's
  maximum charge, clean stop on `eventChargeLimitReached`, free-domain cap, migration-safe resume (never charges twice),
  read-only enrichment-dataset mode, early stop without requiring a phone, final README. Not published.
- Stage 4: 100-domain local benchmark. Memory: HTML parsed with htmlparser2 instead of parse5 and home page released
  early (peak RSS 1.6 GB → ~200 MB at concurrency 15); Docker CMD caps the V8 heap at 70% of the run memory; OUTPUT
  `resources.downloadedMb`. Quality: sister-TLD addresses count as own domain (backmarket.fr → @backmarket.com),
  two-token role compounds (data.protection@, customer_service@), `email@` treated as a placeholder, new role words
  (complaints, ouvidoria, beschwerde, reclamaciones, clients). Local scripts `benchmark.mjs`, `debug-domain.mjs`. Not published.
