[SCR-383] Document Auto-Mode (mode=auto) support#22
Open
kostas-jakeliunas-sb wants to merge 1 commit into
Open
[SCR-383] Document Auto-Mode (mode=auto) support#22kostas-jakeliunas-sb wants to merge 1 commit into
kostas-jakeliunas-sb wants to merge 1 commit into
Conversation
Auto-Mode is a server-side, flag-gated beta feature. The SDK is a pure
pass-through, so `params={'mode': 'auto', 'max_cost': N}` already works
and the `Spb-auto-cost` response header is readable today — no client
code or validation changes are needed (server enforces the 400s).
- README.md: add an "Auto-Mode" example (enable mode=auto, optional
max_cost cap, read the Spb-auto-cost header) plus usage notes
(GET only; max_cost optional/>=1; not combinable with
render_js/premium_proxy/stealth_proxy).
- CHANGELOG.md: add 2.0.3 entry documenting Auto-Mode support.
- scrapingbee/__version__.py: bump 2.0.2 -> 2.0.3.
- tests/test_utils.py: update User-Agent assertion to track the
bumped version (derived from __version__).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
marius-nemeiksis-sbee
approved these changes
Jul 2, 2026
marius-nemeiksis-sbee
left a comment
There was a problem hiding this comment.
Open question: should we maybe spend some time to bring the SDK up to speed before or together with this release? The gap is huge.
Or at least the most crucial changes - like api_key in headers (sdk code still use query param)
Author
|
Good question, fyi @dbulbukas-sbee see Marius' point above - basically: scrapingbee-python sdk is very much outdated, what should we do about it (we should at some point make a decision, in the future) |
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.
tl;dr
Docs-only: document Auto-Mode (
mode=auto) in the Python SDK and bump the version — no client code or validation changes (the SDK is pure pass-through; the server enforces the 400s).Summary
README.md: new Auto-Mode section — enablemode=auto, optionalmax_costcap, read theSpb-auto-costresponse header; plus notes (GET only;max_costoptional and>= 1; not combinable withrender_js/premium_proxy/stealth_proxy→ server returns400).CHANGELOG.md: add2.0.3entry documenting Auto-Mode support.scrapingbee/__version__.py: bump2.0.2→2.0.3.tests/test_utils.py: update theUser-Agentassertion to track the bumped version (the header is derived from__version__).No changes to
scrapingbee/client.pyor any param allowlist —params={'mode': 'auto', 'max_cost': N}already serializes correctly today, andresponse.headers['Spb-auto-cost']is already readable.Test plan
make lint(flake8) — passes, no findingsmake test(pytest, mocked, no network) — 16/16 passmode=autoreturns a winning-config response andSpb-auto-costreflects credits charged🤖 Generated with Claude Code