Skip to content

v0.1.2

Choose a tag to compare

@jehrr jehrr released this 29 Sep 23:40
· 9 commits to main since this release
65436b7

Behaviour changes. A page that was refused once and then served is
no longer reported as blocked — such runs were exit 6 / partial, now 0.
Browser --concurrency works (it crashed every worker), and a run whose
workers all fail is exit 5, not exit 4.

Fixed

  • A recovered page is not a blocked one. _fetch_with_policy kept a
    "refusal seen" flag that a later successful attempt never cleared, so a
    retry that got the page still reported it blocked. Measured live on
    2026-09-29 (pyppeteer, @nasa): one empty HTTP 200, then the profile,
    then partial / stop_reason: blocked with pages_failed: []. And the
    HTTP -> browser switch spent a --retries attempt, so with --retries 0
    a browser started and was never asked for the page. Both fixed in all
    three engines, with a check that drives the real function.
  • Browser --concurrency crashed every worker. The workers were handed
    the Playwright driver the main thread created, and Playwright's sync
    driver belongs to its thread: greenlet.error: Cannot switch to a different thread, then exit 4 with no rows. Each worker now starts its
    own driver, on first use, in its own thread. And a target no worker
    could fetch now ends as a counted failure (exit 5 when nothing was
    gathered) instead of vanishing into "0 results". Live: 3 of 3, exit 0.

source_changed never fired. diff_runs.py's source-split tuple was
empty, so a count read from the rounded stats fallback diffed against
an exact statsV2 count was reported as the account having changed —
the opposite of what output_writer.py and the README say. The count
columns now go to source_changed when stats_source differs, and
smoke_test.py checks it.

  • Donor prose removed from the shared core. output_writer.py,
    diff_runs.py, the engines, page_flow.py, smoke_test.py,
    .github/ci_checks.py and the Dockerfile carried text from the repos
    this core was copied from — YouTube comment threads, --sort top,
    reply threads, job listings, "the business", --mode comments --out software-engineer — describing those sites as if they were this one.
    Rewritten from this repo's own README, code and fixtures, or deleted
    where there was no measured equivalent. Explicit sibling provenance
    ("measured on tiktok-profile-scraper's route", "a sibling repo
    (youtube-scraper) had…") is kept and now says whose it is.

  • diff_runs.py's summary printed @ company_name and "pay not stated"
    for every added or removed row; it now prints the handle and the
    follower count.

  • The engines' _prime_session docstring no longer describes the YouTube
    repo this core came from.

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

  • The Scraper API engine failed on every --wait-text / --wait-element /
    --wait-state call, and was billed for it.
    It sent waitFor as a
    JSON-encoded string; measured 2026-09-23 the live API answers that with
    HTTP 422 "params.waitFor must be an object" and still charges $0.0005,
    while the same request with an object is answered 200. It is now sent as
    an object. (The target status was already read from http_code; the new
    regression check pins that too, driving the real fetch_html with
    requests.post stubbed.)

  • --wait-state networkidle is refused by the Scraper API (HTTP 422
    "params.waitFor.state must be one of: load, domcontentloaded", still
    billed — measured 2026-09-23 on a sibling repo with the object-shaped
    waitFor). The choice is removed.