Repository navigation
Behaviour changes in this batch, read before upgrading a script:
OPENSEA_URLno longer outranks--collection,--categoryor
--mode collections(it used to make--collection pudgypenguinsscrape
the environment's collection instead), and.env.examplenow ships it
commented out.--pages 0,--limit 0,--concurrency 0and negative
--delay,--retry-delayand--proxy-block-retriesare usage errors
(exit 2) instead of being accepted;scraper_api_client.py --retries -1
too. A typed--urlthat names a different collection from
--collectionis refused. CSV cells that begin with=,+,-,@, a
tab or a line break now get a leading apostrophe (CSV only; the JSON is
unchanged) and the sidecar counts them incsv_cells_escaped. The
canary now fails, rather than warning, when OpenSea was not actually read.
If you script this scraper:
--retries 0is now a usage error (exit 2).
It used to be accepted and to mean "never fetch the page" — the load loop
isrange(1, retries + 1)— so a run passing it classified the empty
document as a refusal and exited 3. A third-party audit did exactly that
on 2026-10-13 and reported the site as unavailable while it was serving
250 rows to the same machine a minute later.
Fixed
-
A page that kept coming back as a challenge could buy up to five
captcha solves. Each engine checks for a challenge before and after
classifying the page, and re-fetches up to three more times; only the
second check was counted, so the per-page limit of one did not hold
(5 solver calls against a limit of 1, reproduced with the solver stubbed,
in all three engines). Both checks now draw on one per-page allowance,
spent immediately before the purchase and never reset by a retry or a
rotation. A suite check drives each engine with its driver stubbed. -
OPENSEA_URLsilently replaced--collection. With the URL
.env.exampleused to ship,--collection pudgypenguinsscraped Bored
Apes and--mode collectionswas refused as a mismatch. What was typed is
now captured before the environment is applied. -
Output files are written atomically.
out.json,out.csvand
out.meta.jsonare written to a temporary file beside the target and
renamed over it, so a crash, a full disk or a Ctrl-C mid-write leaves the
previous good file in place (before: an error injected insidejson.dump
left 12 bytes of invalid JSON). A new file gets the modeopen()would
have given it; an existing file keeps its own. -
diff_runs.pycompared item columns in every mode, so a collections
run whose volume went from 100 to 5,000, or an activity event whose type
changed, reported 0 changed. The compared columns are now per mode, the
mode comes from the sidecar (or the rows), and its help and docstring
describe OpenSea rather than another site. -
The credential scan read nothing when the clone sat under a directory
calledlive,capturesorvenv-…, because its exclusions were
matched against the absolute path, and still printed "nothing
credential-shaped". Exclusions are now relative to the repository, and a
scan that read 0 files fails. -
Numeric flags reject values below their floor with an error naming the
flag (see the blockquote above). -
.gitignorecovers--dump-html NAME --pages Ndumps (NAME.pageN), the
usual scratch and output directory names and a root-level*.html;
.dockerignoreexcludes every.env*. -
The docs no longer say Scraping Browser credentials "live about a day":
how long they last varies, and a 401 is the sign to refresh them. -
Shipped files no longer cite section numbers of an internal document; the
rules are stated in this repository's own words, and a suite check keeps
it that way. -
CI's sample-output step calls
.github/ci_checks.py --sample-checkinstead
of a second inline copy of the same check. -
Two of the three modes had silently degraded, and the run still said
complete. Between 2026-09-17 and 2026-10-13 OpenSea stopped inlining
its state on the ranking and on the activity feed; both now render
client-side, and only a collection page still ships its rows. The engines
kept page 1's rows anyway, got them from the DOM fallback — an address and
a name, every price null — and reported exit 0 with 23 and 24 rows
against the 160 and 200 the endpoint served the same minute.
data_sourcereaddomon every row, which is that column working
exactly as designed; nothing acted on it.Page 1's rows are now used only when the page actually inlined some, so a
mode that stops inlining is handled by the path that already existed for a
request the page does not answer: page 1 becomes proof-of-service and
totals, and the feed starts from the endpoint. Re-measured after the fix:
items250,collections161,activity300.And a run that is nonetheless built entirely out of the fallback now says
so, is no longercomplete, and all three canary jobs assert the route
mix instead of only the first — which is the gap that let this reach a
release. The items job had the assertion and would have gone red; the
other two did not. -
--retries 0skipped navigation entirely (see the note above). It is
refused at parse time by a shared guard, so all three engines answer the
same way, and the suite pins it per engine by reading the source rather
than through an import — a check gated behind importing the engine skips
for exactly the engines whose driver is absent. -
A throttle is no longer treated as a block. 429 and 503 want the
opposite response to a 403: the exit is fine and the rate is not, so the
answer is the same exit and a longer wait. They now have their own budget,
separate from--retries, and honour aRetry-Afterthe server sends —
the in-page fetch had to start returning that header for it to be
anything but dead code. No throttle has ever been seen on this site: the
endpoint'sx-ratelimit-remainingreads 399 and, measured 2026-10-13, did
not move across a burst of 60 requests. This path is implemented and
unexercised here, and it is driven offline against a fake driver for that
reason. -
A browser that will not start is exit 2, not a traceback. A missing
Chromium or a sandbox refusal is neither a bug here nor the site refusing
us; it now reports one actionable line, with--verboseto re-raise the
driver's own stack. -
The Scraper API path sent
waitForin a form the live API rejects,
and read the wrong field as the target's status. Measured 2026-09-23
againstscraper.2captcha.com/tasks/sync:waitForsent as a
JSON-encoded string (what this client built for every--wait-*flag)
is answered HTTP 422 "params.waitFor must be an object" and is still
billed ($0.0005); the same request with an object gets HTTP 200. It is
now an object. And the response'sstatusis the API's own verdict
("success"), not the target site's HTTP code, which ishttp_code—
so a target 403 or 503 never reached the page classifier. The target
status is now read fromhttp_code(falling back tostatusonly if
that is an integer). Pinned by an offline check that drives the real
client withrequests.poststubbed; verified by control (red with the
old client).
Changed
- The price-boundary stop now rests on the data, not on an error. On
2026-09-17 passing a null-sort-key cursor back answered
{"errors":[{"message":"Something went wrong"}]}, and the stop was built
on that. On 2026-10-13 the same cursor pages normally — a walk went 1,000
rows deep, and pages 4 to 10 carried zero priced items. OpenSea fixed
their end. The behaviour is unchanged, because a floor scrape should still
stop where the prices stop, but it is now keyed on a page with no priced
row (a terminating condition is a property of the catalogue, not of
the transport). Every copy of the old claim in the code and the docs has
been corrected rather than quietly dropped. completeunder--sort pricenow says in the log what it is complete
FOR: the feed does not end at the boundary, and--sort createdwalks on.- The challenge-marker comment in
product_parser.pyand the README now
carry THIS site's measurement rather than a sibling's. page_flow.block_advicenames the four networks this site has actually
been measured serving, instead of "a plain datacentre address".SECURITY.mdsaid this project has no releases or version tags; it has
both. "Supported versions" now names the latest release andmain.
Added
-
Captured endpoint responses as fixtures — an invalid cursor, the
null-key cursor, an unknown collection, a schema validation error. All
four come back HTTP 200, so a caller branching on the status alone
reads every one of them as success. Captured from the live endpoint rather
than assembled, which is what dates the null-key one and makes the
correction above checkable. -
last_cursorin the run sidecar: where the walk stopped, so the one fact
a resume would need is not thrown away. Not a resume feature — that needs
atomic partial writes and a flag, and is a product decision. -
--verbose, on all three engines. -
A Scraping Browser fixture, and the check that needed it. The
--cdp-endpointpath was run for the first time: three modes over a
country-usprofile, 250 rows identical to a local browser's on the same
pages, pyppeteer matching Playwright 150 of 150 over the same
authenticated endpoint, Selenium refusing it with the documented reason and
exit 2, and a second concurrent run exiting 5 withprofile_lockedand the
credential masked tows://***:***@cb.2captcha.com:9222.The capture from that run is now a fixture, because the auto-solve
extension injects a Turnstile hunter into every page it loads and this is
the only fixture that can spring that trap. Measured on one collection page
fetched two ways in the same hour:cf-turnstile1 over CDP against 0
locally,chrome-extension://…hbpbo16 against 0, and
challenges.cloudflare.com— the marker this repo actually uses — 0 on
both. Puttingcf-turnstileback into the marker set now turns six checks
red, one of them on that fixture. A sibling repo shipped the same check and
it passed for the wrong reason, having only ever run against pages fetched
with a plain client. -
The proxy path, run for the first time, which was the last credentialled
path left to verify and the one that had never been exercised. Through a
2Captcha residential exit (the global mix, which came out in RU rather than
the EU its hostname suggests): Playwright 250 rows over 3 pages with one
timeout retried and recovered; pyppeteer 50 rows through
page.authenticate; Selenium warning that it cannot send proxy
credentials, stripping them and failing — the documented limitation
verified rather than asserted; and pool rotation from a dead exit to a live
one, withERR_PROXY_CONNECTION_FAILEDrecognised as a proxy fault rather
than a timeout.The check worth having a real credential for: the password appears in no
process command line, verified withpsmid-run. The browser is given
--proxy-server=http://eu.proxy.2captcha.com:2334— host and port only.
That is the central promise (a secret never reaches argv), checked
against a live secret instead of a fixture.The data did not move: 250 of 250 rows identical to the Finnish datacentre
and US Scraping Browser runs, on 12 stable columns each. Four unrelated
networks now return the same rows for the same URL.