# Changelog of Instagram Scraper – Posts, Places & Hashtags (No Login) (`badr_xba/instagram-scraper`) Actor

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

## Changelog

### 2026-11-12 (honest fields and date filter)

- README, input form and dataset schema now say clearly that `likesCount`, `commentsCount` and `timestamp` of a profile's posts are only filled with "Open each profile post for full details" (`includePostDetails`): Instagram does not show them on the profile page to logged-out visitors.
- "Only posts newer than" on a profile without `includePostDetails`: one WARN line in the log, a `dateFilterWarning` in RUN_SUMMARY (plus `undatedKept`), a report note and a status-message warning advising to turn the option on. Output rows and billing unchanged.

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

- Input `commentsSort` (`instagram` default, `newest`, `mostLiked`): order of the comments Instagram shows,
  applied before *Results per URL*.
- Input `addParentData` (default off): adds a `parentData` object (profile, hashtag, place or post the row was
  found on) to posts, reels and comments. New optional output field `parentData`.
- Visual report on kit 1.1.0: live progress page while the run works (at most one write a minute), failed
  inputs grouped by error code and coded run notes, data-quality panel, at most 3 pictures per result
  (profile / place / hashtag cards show 3 latest posts). The final page is also written when the run crashes,
  is aborted or the proxy cannot be set up.

### 2026-11-08

#### Added

- Hashtag and place rows get `topPostDisplayUrl`: the real picture of the first post Instagram shows on that
  hashtag / place page (already loaded, no extra request; empty when the page shows none). Hashtag rows (details)
  now also keep the top posts of the page in `latestPosts`. *Hashtags* and *Places* views open with this picture;
  the *Posts and reels* view now shows `displayUrl` as its first column; the visual report shows the picture in
  its table and the hashtag top-posts grid.
- **Visual report** (`REPORT` record, Output tab → *Visual report*): post and reel cards (image, format badge,
  plays, likes, comments, account, place, caption, hashtags), carousel galleries, profile header cards with their
  latest posts, place, hashtag and comment cards; 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.0) 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.
- Dataset views show thumbnails: post image (Overview), author picture (Comments), profile picture (Profiles).
- Output schema: *Visual report* link; key-value store schema: `REPORT` (text/html).

#### Fixed

- Picture fields (`displayUrl`, `childPosts[].displayUrl`, `profilePicUrl`, `ownerProfilePicUrl`) keep only
  http(s) links: a blank, relative or `data:` value is now `null`; `//host/…` becomes `https://host/…`. Valid
  links are unchanged.

### 2026-11-07

#### Faster and lighter page loads (shared engine, same in the Profile Scraper and Reel 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).
- Navigation timeouts lowered from 60 s to 30 s per step; HTTP 429 and 5xx answers are retried from
  another address, with an exponential, jittered backoff, and no sleep after the last attempt.
- "Open each profile post for full details" opens 3 posts at a time instead of one after the other:
  6 posts in 6.8 s instead of 20.3 s (local measurement), same rows in the same order.
- The browser no longer starts when no input is usable.

#### Fixes and data

- Collab posts by another account shown on a profile were credited with the profile's id and name
  (`ownerId` / `ownerFullName` of natgeo on a natgeotv post). The author is now only completed with the
  profile's details when it is the same account.
- `videoDuration` is now filled for post and reel pages, from the video's DASH manifest.
- 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 fields that are often empty (profile post lists without
  details, fields not shown to logged-out visitors).

#### Maintenance

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