Repository navigation
feat(batch,extract): default batch to Adaptive Stealth Mode; fall back on REQS007 - #28
Merged
Merged
Conversation
…k on REQS007 `zenrows batch create` sent tasks without `mode`, so protected sites failed with REQS002 unless the user knew to force js_render or premium_proxy. It now adds mode=auto to every task that doesn't force those flags or set `mode` itself, matching `fetch` and `extract`. It's applied per task because the API rejects a task that combines a job-level mode=auto with its own js_render or premium_proxy. `--manual` turns it off, and `--proxy-country` now works without `--premium-proxy`. `batch estimate` applies the same rule and counts auto tasks at the 25x upper bound. `zenrows extract` now also falls back to Autoparse on REQS007 (domain not prepared for Extract yet), not only AUTH010. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…QS007 without extract Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AnderRV
marked this pull request as ready for review
October 7, 2026 11:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
zenrows batch createsent tasks withoutmode, so protected sites failed with REQS002 unless the user knew to force--js-renderor--premium-proxy. It now uses Adaptive Stealth Mode by default, likefetchandextract.batch create: addsmode=autoto every task that doesn't forcejs_render/premium_proxyor setmodeitself. It's applied per task, not job-level, because the API rejects a task that combines a job-levelmode=autowith its ownjs_renderorpremium_proxy(REQS004).--manualturns it off, anddefaultMode: "manual"in config is respected.--proxy-countrynow works without--premium-proxyin auto mode. The standalone job-level check is gone; the per-task check still validates job + task params together.batch estimateapplies the same rule and counts auto tasks at the 25x upper bound, labelled as such. Note: policy credit caps now see that upper bound, so--manualis the way to get the old count.extractnow also falls back to Autoparse on REQS007 (domain not prepared for Extract yet), not only AUTH010.Test plan
npm run typecheck,npm test(283 passing), rebased on 1.3.2zenrows extracton a domain that returns REQS007: falls back to Autoparse with databatch estimate: 55 credits with auto vs 7 with--manualfor a 3-line specbatch create --proxy-country us --followwith 2 auto tasks + 1premium_proxytask: 3/3 successful🤖 Generated with Claude Code