Skip to content

v0.3.0 — reviews sort and page correctly; reCAPTCHA v2 is bought as v2; CDP leaves your browser running

Latest

Choose a tag to compare

@jehrr jehrr released this 22 Oct 22:26
· 3 commits to main since this release
ca3eacf

Behaviour changes for existing callers.

  • --mode reviews comes back in a different order. --sort newest now sorts newest first; it returned the store's relevance order before. Every page, page 1 included, comes from the reviews endpoint with the previous page's token: one request more than before, and no page that restarts the list. --sort also takes relevant and rating.
  • A --gl Play does not serve is exit 2, not 3, with no retries.
  • --url keeps its own gl/hl; the defaults no longer replace them.
  • --out x.json writes x.json, not x.json.json.
  • stop_reason says no_new_products where the last page added nothing; it said completed. Status and exit code are unchanged.
  • scraper_api_client.py defaults to --format json (was both) and writes a .meta.json.

Correction to 0.1.0 and 0.2.0. The README said the store answers only the "newest" review ordering and returns nothing for the other two. That was a measurement of this repository's own request, which put the sort key in the wrong slot. In the shape the store's front end uses, all three orderings work. The same mistake made --sort newest return relevance order.

Reviews (#7)

  • The sort key goes where the store reads it. Measured 2026-10-22: newest is strictly descending and stays so across a continuation token (40 + 40, no id shared).
  • Page 2 no longer restarts the list. The app page's embedded reviews carry no token and are relevance-ordered, so they are no longer page 1. A reported run went from 20 / 1 / 19 rows over three pages to 20 / 20 / 20.
  • --url <app page> --mode reviews works. The canary checks a full page on each page and date order; its old floor passed by accident.

reCAPTCHA (#8)

  • A v2 widget whose loader carries no render parameter was classified as v3 — checkbox and invisible alike — so a solve was bought for the wrong task type and refused. It is now v2, and the badge separates invisible from checkbox once v3 is ruled out. On Google's own demos, with the corrected kind, both v2 forms were solved and accepted.

Run contract (#9)

  • Play's HTTP 400 for an unserved --gl is a usage error, not a block. --gl is shape-checked before any browser starts.
  • screenshot_count on app rows counts the screenshots (9 for WhatsApp), not the wrapper (1).
  • --out/--dump-html create missing directories; a path that cannot be created is exit 2 before a browser starts.

CDP (#10)

  • pyppeteer no longer shuts down a browser it connected to, and no longer hangs when an endpoint refuses the handshake: the real reason is raised. Playwright closes the page it opened. Both retry a handshake refused with 500/502/503 twice; other refusals fail at once.

Scraper API, docs, packaging (#11)

  • The Scraper API path writes the same output as the browser engines: sidecar, page/position, exit codes, and a market pinned in the request.
  • diff_runs.py advises on the actual reason it refused.
  • The README explains the always-null original_price/discount_pct and covers pyppeteer on Apple Silicon.
  • .dockerignore leaves out per-engine virtualenvs and captures (~240 MB of build context).

All of this came from a manual test of v0.2.0. Its reproduction steps were re-run against this release: 13 of 13 runnable items give the expected result.