# Changelog of Medium Public Following Scraper (`w3crawler/medium-following-scraper`) Actor

- **URL**: https://apify.com/w3crawler/medium-following-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/w3crawler/medium-following-scraper.md

## Changelog

### \[1.4.0] - 2026-10-25

#### Fixed

- Align the run summary with the key-value-store schema: `recordType` is now `runSummary` for both `OUTPUT_SUMMARY` and `OUTPUT`, and `status`/`runStatus`/`actorStatus` plus `dataStatus` always use the schema enums.
- Report the persisted diagnostic-row count in `diagnosticCount` so it matches the dataset, and expose the observed diagnostics through `diagnosticsObserved` and `errors`.
- Use the anonymous following connection whenever the embedded server-rendered payload exposes no usable followed users.

#### Added

- Bounded transport chain: direct public requests, then standard Apify Proxy, then a public text-rendering reader of the same public following page. A target that produces records on a later transport no longer keeps the diagnostics of an earlier, challenged attempt.
- `public-reader-following` extraction method and `medium_public_reader_following_v1` provenance for records obtained through the public reader.

### \[1.3.0] - 2026-09-08

- Add optional standard Apify Proxy routing for ordinary public Cloud requests.
- Record direct versus proxy transport truthfully in run artifacts and normal rows.
- Document proxy input validation and add contract coverage.
- Expose the dataset sanitization report in the output and key-value-store schemas.
- Document the internal pagination safety bound, run-cost factors, and sanitization artifact.

### \[1.2.0] - 2026-09-08

#### Changed

- Prefer each username's public Medium subdomain and read its structured server-rendered Apollo following payload before making anonymous GraphQL requests.
- Keep the canonical `medium.com/@username/following` URL as a bounded fallback for accounts without a usable subdomain.
- Add a visible-DOM fallback, explicit extraction-method/proxy fields, cursor-pagination coverage, and truthful diagnostics for blocked or unusable pages.
- Omit known pre-2000 membership sentinel timestamps and align schemas, README examples, fixtures, and local contract validation with emitted records.

### \[3.0.0] - 2026-05-22

#### Changed

- Increased scroll attempts from `ceil(maxItems/10)+3` → `ceil(maxItems/5)+5` for each user profile
- Increased scroll wait from 2s → 3s to give Medium more time to lazy-load cards
- Increased `maxConcurrency` from 3 → 5 for parallel multi-user scraping
- Only stop early on empty scrolls after at least 3 attempts (avoids premature exit)

All notable changes to the Medium Following Scraper are documented here.

### \[1.1.0] - 2026-05-21

#### Added

- **Multiple usernames support**: New `usernames` array input — scrape following lists for multiple users in one run.
- **Parallel processing**: Added `maxConcurrency: 3` to PlaywrightCrawler.
- Input schema updated with `usernames` (stringList) field.
- Fixed final log to correctly report `state.totalScraped`.

#### Changed

- `validateInput` now accepts and passes through `usernames` array.
- Single `username` field now optional when `usernames` array is provided.

### \[1.0.0] - 2026-05-21

#### Added

- Initial production release of the Medium Following Scraper.
- Medium internal API-based architecture for efficient following list extraction.
- Support for single `username` input with cursor-based pagination.
- Modular project structure:
  - `src/main.js` — entry point with input validation and crawler init.
  - `src/routes.js` — Crawlee router factory.
  - `src/routes/handlers.js` — page handler with pagination logic.
  - `src/extractors/` — following profile data extraction logic.
  - `src/filters/` — URL-based deduplication.
  - `src/schema/input.js` — input validation (username, maxItems).
  - `src/utils/` — URL builder, helpers, and API call utilities.
  - `src/errors/` — `ScraperError`, `ErrorTypes`, `ErrorHandler`.
- Output fields: `username`, `displayName`, `bio`, `followerCount`, `isMember`, `profileUrl`, `avatar`.
- `.actor/actor.json`, `input_schema.json`, `dataset_schema.json` for Apify platform compatibility.
- Dataset views in `dataset_schema.json` for Apify Storage table display.
- `validate-datasets.js` for local dataset output validation.
- `Dockerfile` for Apify cloud deployment.
- `README.md` with full Apify usage guide.
