# Changelog of Jumia Products Scraper – Full Catalog, Prices & Stock (`badr_xba/jumia-products-scraper`) Actor

- **URL**: https://apify.com/badr_xba/jumia-products-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/badr_xba/jumia-products-scraper.md

## Changelog

### 2026-11-27 (retry rule)

- Owner rule: a refusal by Jumia (403, 429, anti-robot challenge, login page) is never retried — no new session, no
  new IP — and goes to `FAILED_INPUTS` as BLOCKED, not charged. A technical error (network, timeout, 5xx, proxy) gets
  at most 2 new tries with the same proxy configuration (was: up to 9 session rotations plus 4 retries). The remote
  link file: 429 is no longer retried. Billing, output and run statuses unchanged.

### Unreleased (2026-11-12, graceful stop before the timeout, local, not pushed)

- Run deadline (`src/deadline.py`): `ACTOR_TIMEOUT_AT`, else `APIFY_TIMEOUT_AT`, else run start + the run's timeout
  (run options read from the Apify API, else the Actor default 10 800 s). Margin max(45 s, 10 % of the timeout)
  (was 5 %, 20 s-3 min). Retry pauses never sleep past the stop; requests still running get a short grace, then are
  abandoned (one slow sitemap, a 90 s handler or a retry can no longer push the run past its timeout); history,
  alerts, incremental marker and visual report are bounded to the time left (report skipped under 15 s).
  Unfinished countries go to FAILED_INPUTS with code `TIME_LIMIT`; the run ends SUCCEEDED. Output and billing unchanged.

### Unreleased (2026-11-09, review invitation)

- Successful runs that saved at least one result end their status message with one short, optional invitation to leave a Store review or open an issue (never on failed or empty runs); README section "Feedback and reviews". Output and billing unchanged.

### Unreleased (visual kit 1.1.0, not pushed yet)

#### Added

- New output fields, read from Jumia's own product block (list pages and product pages): `priceEur` /
  `oldPriceEur` (euro price published by Jumia), `variants` (sizes and other options with their own price, stock
  flag and stock text) and `availableVariants` (names buyable now). Empty/null when Jumia gives none. No field
  renamed or removed. *Products* view: euro price and variants-in-stock columns.
- List pages: `images` now holds the photos Jumia lists for the product (up to 4, 520 px, main photo first)
  instead of the main image only.
- `FAILED_INPUTS` items gain a stable `code` (`INVALID_COUNTRY`, `INVALID_DATE`, `NO_PRODUCT_SITEMAP`,
  `EMPTY_CATEGORY_SITEMAP`, `BLOCKED`, `NOT_FOUND`, `SERVER_ERROR`, `TIMEOUT`, `REDIRECT_LOOP`, `NO_PRODUCT_DATA`,
  `REQUEST_FAILED`); `type` is kept.
- Visual report on kit 1.1.0: at most 3 photos per product (main first, thumbnail strip), live progress while
  the run is going (at most one REPORT write per minute), data-quality panel, failures grouped by code and
  warnings (ignored settings, incremental mode unavailable, no category sitemap, stops), euro price, sizes in
  stock and a size filter on the cards. The report is also finalised (FAILED) if the crawler crashes.

#### Tests

- `tests/test_premium.py` (20 tests, real fixtures incl. the trimmed real `jumia.ma/fashion-mode/` page
  `tests/fixtures/jumia_listing_fashion.html`); `tests/test_report.py` updated for kit 1.1.0.

### 2026-11-08

#### Changed

- *URL index* rows (`listUrlsOnly`) now carry `image`: the first product photo Jumia itself declares in the
  product sitemap (`<image:loc>`, `*.jumia.is` CDN) that the Actor already downloads, so no extra request. The
  *URL index* view opens with this image column; `null` when the sitemap block has no photo.

#### Added

- **Visual report** (`REPORT` record, Output tab → *Visual report*): product cards with photo (gallery of the
  product page in *Product pages* mode), price, old price, discount, price change since the last run, rating,
  Jumia Express / official store / campaign badges; compare mode (up to 4); key figures, price, discount, category
  and brand charts, search, filters, sorting, table view and CSV/JSON export of the filtered rows. Built by the
  shared `src/visual_kit.py` (v1.0.1) with this Actor's `src/report.py`. At most 2,000 rows are kept in memory for
  it; it is never billed and a report error is only logged as a warning.
- *Price monitoring* view: product image column. Output schema: *Visual report* link; key-value store schema:
  `REPORT` (text/html).

#### Fixed

- Image links (`image`, `images`): `//host/…` becomes `https://host/…`; blank, `data:` and relative values are
  dropped, and a product-page picture listed twice is kept once. Valid links are unchanged.

#### Tests

- `tests/test_report.py`: 13 tests on 60 real products of a production run and the real product page fixture
  (image ownership, product-page gallery, placeholders, URL normalization in the parsers, escaping, a 5,000-row
  synthetic set, export = embedded data, failure safety, REPORT saved as exactly text/html, rows pushed → report within the budget).

### 2026-11-07

#### Fixed

- Incremental mode (*Modified since* / *Only updated since last run*) in the default fast mode: list pages only give a date (`2026-09-01`) while the reference can be a full timestamp (`2026-09-01T10:00:00+00:00`); a product changed on the reference day itself was skipped. Dates are now compared day by day.
- Seller filter: an unknown seller was compared as the text "none".

#### Faster / lighter

- Review requests of a list page are queued in one call instead of one call per product.
- Price history and per-run keys are loaded/saved in parallel at start-up and on migration.
- Explicit 60 s timeout per download (`navigation_timeout`).

#### Data

- Every row is checked against the types of `.actor/dataset_schema.json` before it is saved (`src/item_check.py`); `reviewsCount` declared as an integer; descriptions say which fields stay empty in the default fast mode (seller, description, specifications, breadcrumbs, condition) and that `lastmod` only exists in URL-index mode.

#### Maintenance

- Offline test suite (`tests/`, 28 tests) on real, trimmed Jumia pages; `pytest.ini`. `tests/` excluded from the Docker image.
- `requirements.txt`: `apify>=3.4,<4`, `crawlee[beautifulsoup,httpx]>=1.11,<2`.
