# Changelog of Instagram Reel Scraper – Plays, Sponsors, Comments & Music (`badr_xba/instagram-reel-scraper`) Actor

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

## Changelog

### 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.

### 2026-11-08 (visual kit 1.1.0)

#### Added

- `audioUrl`: the reel's audio-only track (best quality) from the video manifest of the reel page; a signed
  Instagram link that expires like `videoUrl`.
- `engagementRate`: (likes + comments) / plays x 100, 2 decimals; empty when plays are unknown or likes hidden.
- Input `minPlays` (default 0 = no filter): profile reels under that play count are dropped before their page is
  opened (not billed), counted in `RUN_SUMMARY.skippedByPlays`.
- Visual report (kit 1.1.0): live progress (inputs done / given), warnings and failed inputs grouped by code,
  data-quality panel, at most 3 images per reel.

#### Fixed

- The REPORT page is also written when the run is aborted or crashes (final status instead of "Running").

### 2026-11-08

#### Added

- *Music, tags and media* (`engagement`) dataset view now opens with the reel thumbnail (`displayUrl`) as an
  image column, like the other views.
- **Visual report** (`REPORT` record, Output tab → *Visual report*): 9:16 reel cards with cover, plays, likes,
  comments, shares, engagement, music, hashtags and co-authors; key figures, charts, search, filters, sorting,
  table view, full-size viewer 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.
- Output schema: *Visual report* link; key-value store schema: `REPORT` (text/html).

#### Fixed

- Image fields (`displayUrl`, `images`, `taggedUsers[].profile_pic_url`, `coauthorProducers[].profile_pic_url`,
  `latestComments[].ownerProfilePicUrl` / `owner.profile_pic_url`) are normalized: `//host/…` becomes
  `https://host/…`, blank or non-http(s) values become `null`, and unusable carousel entries are dropped from
  `images`. Valid links are kept byte for byte (they are signed).

#### Tests

- `tests/test_report.py`: 15 tests on the 3 real reels of a production run (image ownership, owner picture never
  borrowed, placeholders, galleries, hidden likes, URL normalization, escaping, a 5,000-row synthetic set,
  export = embedded data, failure safety).

### 2026-11-07

#### Faster and lighter page loads (shared engine, same in the Instagram Scraper and Profile Scraper)

- JavaScript is turned off in the browser and images are disabled at launch. Instagram's scripts were
  already blocked; the data is in the page's `<script type="application/json">` blocks, which the
  browser parses without running anything. A page now makes 2–4 requests instead of 15–40, with the
  same data (checked on profile, reels tab, post, reel, hashtag and place pages).
- The data is read right after the document is parsed, then every 0.25 s if needed (it used to wait
  a full second before the first look, up to 12 s). Data blocks, title and description are read in
  one browser call.
- Navigation timeouts lowered from 60 s to 30 s per step; HTTP 429 and 5xx answers are treated as a
  refusal and retried from another address.
- Retries wait with an exponential, jittered backoff (1.5 s, 3 s, 6 s…, capped at 20 s) and no longer
  sleep after the last attempt.
- The browser no longer starts when no input is usable.

#### Fixes and data

- `videoDuration` is now filled: logged-out reel pages leave out `video_duration`, but the video's
  DASH manifest in the same page states it (`mediaPresentationDuration`).
- Collab reels by another account listed on a profile's reels tab were credited to that profile
  (username and name of the profile with the other account's id). The author is now only completed
  with the profile's details when it is the same account; the reel page then gives the real author.
- Inputs wrapped in brackets and followed by punctuation were not recognised; `true`/`false` in an
  input list was read as a username; an input that is not a JSON object crashed the run; a proxy that
  cannot be set up now ends the run with a clear message.
- Every row is checked against the types declared in `.actor/dataset_schema.json` before it is saved.
- Dataset schema: honest descriptions for the fields that are usually empty for logged-out visitors
  (views, Facebook counts, carousel images), and a new "Media and music" view.
- README: the "video duration is not shown" limit was no longer true; the output example showed a
  view count that logged-out runs do not return.

#### Maintenance

- Default memory in `actor.json`: 2048 MB, from the local peak (986 MB summed RSS of the process tree
  for 2 profiles × 4 reels, up to 6 tabs at once; × 1.5 rounded to a power of two). The platform
  setting is currently 4096 MB.
- `requirements.txt`: `playwright>=1.46,<2` (upper bound).
- Unit tests in `tests/` (offline, real saved pages as fixtures): `python -m pytest -q`.
  `tests/` is excluded from the Docker image.
