# Changelog of DBA.dk Scraper (`redomic/dba-scraper`) Actor

- **URL**: https://apify.com/redomic/dba-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/redomic/dba-scraper.md

## Changelog

### 0.1.0

- Search rows carry the seller and buying signals DBA.dk publishes on its own listing cards: `sellerType` (private or business), `organisationName`, `tradeType`, `shippingAvailable` and `buyNow`. A field is left out when the card does not publish it; the Seller & buying signals dataset view puts them beside each listing.

- Monitor mode records one dated price per listing per run in the named state store (up to 60 points) and writes `firstSeen`, `daysTracked`, `priceHistory`, `lowestPrice` and `priceChangeCount` on new, changed and removed rows; older state records get no invented history and only new and changed rows are still charged.

- Search rows carry `postedAt`, the publication or renewal date DBA.dk publishes in the page's embedded search state (UTC); rows without a published date leave the field out. The new `maxAgeDays` input keeps only ads within a chosen number of days and excludes rows with no date when set; monitor state is scoped to the window so a wider schedule is not read as removals.

- `sortBy` orders search, deals and monitor results by relevance, date (newest first), price ascending or price descending; monitor defaults to DBA.dk's newest-first order and a sort set in a pasted URL is kept.

- Monitor state is keyed by the effective sort, and removals are emitted only after a complete scan, so a capped run cannot invent removals for listings it never reached.

- Detail extras are written as flat named columns (`bikesType`, `bikeFrameSize`, `mobileMemorySize`, `conditionText` and so on) instead of a nested `attributes` object; a column appears only when the page publishes a value.

- Monitor state keeps each listing's published values: a changed row reports `changes` (field, old and new value) and a removed row reports `lastSeen`, with no invented values for older state records.

- Price currency and availability are left out of a row when the page does not publish them; no constant fills an empty field.

- README examples refreshed with real 26 November search and deals output; the condition filter is verified across search, deals, monitor and detail runs.

- Detail rows read availability, condition, currency and brand from the listing page's own Product data instead of assuming them.

- Detail rows no longer report the edit time as a posting time; a posting date is emitted only when the page supplies one.

- Detail rows fall back to the shop address for location and to the page's seller name when present.

- First build: search, detail and monitor modes for DBA.dk classifieds.

- Monitor mode charges the `change` event for new and changed listings only; removed and unchanged listings are free.

- Parse drift on search and detail pages is logged with the missing core fields.

- Dataset schema lists only fields the Actor emits; status rows live in the STATUS key-value record.

- Condition filters match Danish labels (Brugt, Ny) as well as English ones.

- A later search page that is missing or unreadable no longer discards the rows already collected.

- Danish and English condition labels (Brugt, Ny, used, new, and their schema.org forms) are folded to one `used`/`new` value, including when a detail page reports the condition only in Danish.

- A search page served without a listing block is re-fetched once; bare Product data is read when the page has no ItemList.

- Deals mode keeps listings priced at or below `maxPriceRatio` (0.7 by default) times the search's median price and writes `marketMedianPrice`, `priceVsMedian` and `savingsVsMedian` on each row, with the median and deal count in the STATUS record.

- Deal-only fields moved from the first dataset view to their own Deals view, so a normal search preview no longer shows three blank columns.
