# Changelog of Instagram Profile Scraper – Bio Links, Followers, Threads (`badr_xba/instagram-profile-scraper`) Actor

- **URL**: https://apify.com/badr_xba/instagram-profile-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/badr_xba/instagram-profile-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

- Output fields `biographyEmails`, `biographyHashtags`, `biographyMentions`: emails, #hashtags and @mentions
  written in the bio text (nothing guessed). Shown in the *Bio and links* view.
- Input `minFollowers` (default 0 = off): profiles under the minimum are not saved and not billed
  (`skippedByFollowers` in RUN_SUMMARY).
- 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, "Email in bio" filter, at most 3 pictures per
  profile (picture + latest posts; highlight titles as text). The final page is also written when the run
  crashes, is aborted or the proxy cannot be set up.

#### Not added

- `isBusinessAccount` / `businessCategoryName`: the logged-out profile page Instagram serves (saved real
  page `tests/fixtures/profile_natgeo.json`) carries no business flag or category, so they would always be empty.

### 2026-11-08

#### Added

- **Visual report** (`REPORT` record, Output tab → *Visual report*): one card per profile with picture, name,
  verified badge, bio, website, followers, following, posts, the 6 latest posts and highlight covers; 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 500 profiles are kept in
  memory for it; it is never billed and a report error is only logged as a warning.
- Dataset view *Bio and links* shows the profile picture.
- Output schema: *Visual report* link; key-value store schema: `REPORT` (text/html).

#### Fixed

- Picture fields (`profilePicUrl`, `profilePicUrlHD`, `highlights[].coverUrl`, `latestPosts[].displayUrl`) 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 Instagram 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). Two profiles load in
  1.4 s instead of 3.2 s (local measurement).
- 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 instead of three.
- 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 (up to ~9 s wasted per refused page before).
- The browser no longer starts when no input is usable.
- Shutdown closes the context, the browser and the driver even when one of them fails.

#### Fixes

- Collab posts by another account shown in `latestPosts` were credited to the profile (its id and
  full name were merged into the other account's post). The author is now only completed with the
  profile's details when it is the same account.
- Inputs wrapped in brackets and followed by punctuation (`<https://www.instagram.com/nasa/>.`) were
  not recognised.
- `true`/`false` or other odd values in the usernames field were read as usernames ("True"); they are
  now ignored. An input that is not a JSON object no longer crashes the run.
- A proxy that cannot be set up (e.g. RESIDENTIAL not available) ends the run with a clear message
  instead of a stack trace.

#### Data quality

- Every row is checked against the types declared in `.actor/dataset_schema.json` before it is saved
  (e.g. a count given as text becomes an integer).
- Dataset schema: honest descriptions for fields that are often empty for logged-out visitors, and a
  new "Bio and links" view.

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