Skip to content

v0.2.0

Choose a tag to compare

@jehrr jehrr released this 15 Oct 22:40
c1affbb

Behaviour changes for existing callers.

  • A package id that does not exist, or a page Play served with no apps on
    it, now exits 4 (as the README always said), not 5. On Selenium the
    same 404 used to exit 3; it is now 4 as well.
  • A run that gathered rows and then failed (a timeout on page 2, a refused
    reviews call) now exits 6 and writes those rows. It used to exit 5
    and throw them away — or, for a refused reviews call, exit 0 as
    "complete".
  • Newly rejected with exit 2 naming the flag: --pages 0 (it used to
    fetch nothing and exit 4), negative --retries, --delay,
    --retry-delay, --proxy-block-retries, --reviews-per-call 0,
    --min-score outside 0..1, --concurrency above 1 (it was accepted and
    ignored), --proxy-rotate on-block (it crashed), --fingerprint without
    a key or with --cdp-endpoint, and --fingerprint on the Selenium and
    pyppeteer engines (they warned and carried on). Selenium with
    --cdp-endpoint now exits 2 instead of 1.
  • Output files are written atomically; a new file gets the mode your umask
    gives it, an existing file keeps its mode.
  • In CSV output only, text cells starting with =, +, -, @, a tab
    or a line break are prefixed with '.

Fixed

  • --proxy and --proxy-file crashed before the first fetch
    (AttributeError: 'ProxyPool' object has no attribute 'next'). Both run
    now, with --proxy-rotate per-page a fresh browser on the next exit for
    every grid page, and a refused page moving to the next exit.
  • --retries, --retry-delay, --proxy-block-retries, --solve-captcha,
    --captcha-api and --min-score were accepted and read by nothing.

    engine_core.fetch_page() now applies them: --retries is extra attempts
    on a transport failure or an unrecognised page (0 = one attempt), a
    refused page gets fresh browsers without spending --retries, and a bare
    HTTP 429 waits at the same exit.
  • The captcha solver was never called, although the README and
    .env.example said it was wired. A reCAPTCHA on a refused page is now
    detected, solved with a 2Captcha key, injected, and the page that follows
    is judged — at most one paid solve per page, an allowance that neither a
    retry nor a fresh exit resets. Tested offline against a stubbed solver; no
    live solve has been run on this site.
  • A refused or unreadable reviews call ended the run as complete. The
    status of the batchexecute call is now read on all three engines, and
    such a page is recorded as failed (blocked when it says so).
  • GOOGLEPLAY_URL from .env overrode --category (and made
    --mode search --query … a usage error). It is now used only when no
    --url and no --category/--query/--app-id/--developer is typed,
    and .env.example ships it commented out.
  • An interrupted write truncated the previous output (a good 1,105-byte
    JSON left as 13 bytes of invalid JSON). Writes go to a temporary file
    beside the target and are renamed into place.
  • CSV cells written by app developers and reviewers could run as
    spreadsheet formulas.
    Escaped in CSV only; csv_cells_escaped in the
    sidecar counts them.
  • An empty document was classified as blocked. It is now an
    unrecognised page that is retried.
  • Error messages mask credentials in http(s)://user:pass@ proxy URLs too.
  • diff_runs.py refuses two runs of different --gl markets even when they
    share a currency (DE and FR).
  • .env.example no longer says Scraping Browser credentials "live about a
    day"; how long they last varies.
  • Public files no longer refer to a private document; the rules are stated
    in this repo's own words, and the suite fails if such a reference returns.
  • tests.yml no longer carries an inline copy of the sample check;
    ci_checks.py --sample-check is the one implementation.
  • Scraper API: waitFor is now sent as a JSON object. Measured
    2026-09-23 against scraper.2captcha.com/tasks/sync: the JSON-encoded
    string this client sent (the form older docs described) is refused with
    HTTP 422 "params.waitFor must be an object" -- and the task is still
    billed ($0.0005) -- so every run with --wait-text or its sibling wait flags
    failed with exit 5. The object form answers HTTP 200.
  • Scraper API: the target page's status is read from http_code. The
    response's status field is the API's own verdict string ("success"),
    not the target site's HTTP code, so a target 403/503 was never seen by
    this client. http_code (an int) is read now, with status kept as a
    fallback only when it is an int.
  • diff_runs.py told users Google Play "prices everything in JPY for every
    visitor".
    That text, and the --price-tolerance-pct help, came from the
    repo this one was ported from; Play prices per market. A currency mismatch
    between two runs is now explained as two different --gl markets.
    TRACKED_FIELDS / PRICE_FIELDS no longer name columns this schema does
    not have (points, price_max, shipping_fee, ...).
  • scraper_api_client.py could never report a block. It compared the
    (state, reason) tuple from detect_page_state to "blocked", which never
    matches. Its docstring, --help and error messages also described another
    site (45 products, a 43-byte Akamai deny, ?p=N, "these pages DO need
    JavaScript"). They now say this path has not been run on Google Play yet.
  • Issue templates and CONTRIBUTING.md described another site (payload
    keys, JPY rate-limit page, EUC-JP, sponsored slots, a 6,750-result cap).
    Rewritten from this repo's README and product_parser.py. The broken
    TROUBLESHOOTING.md links now point at the README.
  • Donor prose removed from captcha_solver.py, output_writer.py,
    env_config.py, fingerprint_client.py, SECURITY.md and
    .github/ci_checks.py. The lessons that came from siblings now name the
    sibling. ci_checks.py no longer says the captures live outside the repo.
    They are committed here, scrubbed.
  • .gitignore / .dockerignore ignored another repo's output prefix
    (dubizzle_listings.*). They now ignore this repo's own googleplay_apps.*.
    A !fixtures_generated.json exception for a file this repo does not have
    was removed, and the Dockerfile example no longer writes /out/coffee.
  • SECURITY.md said this project has no releases or version tags; it has
    both. "Supported versions" now names the latest release and main.
  • captcha_solver.py's docstring pointed at a "No DataDome solver" section
    that does not exist in this repo (it came with the copied core). Removed.