From 6391729d69561d92699a17bd5217a91da9e203ed Mon Sep 17 00:00:00 2001 From: kasparasizi1 <132673909+kasparasizi1@users.noreply.github.com> Date: Wed, 2 Dec 2026 02:13:20 +0200 Subject: [PATCH] feat(google): jobs.search() defaults to the public Google Jobs results (SCR-772) mode now defaults to "serp", matching the API's new default. "rpc" (Google Careers, Google's own openings only) is still available. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 5 +++++ pyproject.toml | 2 +- src/scrapebadger/__init__.py | 2 +- src/scrapebadger/_internal/client.py | 2 +- src/scrapebadger/google/jobs.py | 22 ++++++++++------------ uv.lock | 2 +- 6 files changed, 19 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 809e0aa..064f879 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [0.88.0] - 2026-12-02 + +### Changed +- **`google.jobs.search()` now defaults to `mode="serp"`, the public Google Jobs results.** The API's default changed the same way (SCR-772): the old default, `"rpc"`, returns only Google's own openings from Google Careers, so a search like "software engineer" came back with a handful of unrelated Google roles. Pass `mode="rpc"` to keep the old behaviour. + ## [0.87.0] - 2026-12-01 ### Removed diff --git a/pyproject.toml b/pyproject.toml index cb19245..2f99dde 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "scrapebadger" -version = "0.87.0" +version = "0.88.0" description = "Official Python SDK for ScrapeBadger - Async web scraping APIs for Twitter and more" readme = "README.md" license = { text = "MIT" } diff --git a/src/scrapebadger/__init__.py b/src/scrapebadger/__init__.py index 8136b38..6c20a1c 100644 --- a/src/scrapebadger/__init__.py +++ b/src/scrapebadger/__init__.py @@ -1357,7 +1357,7 @@ async def main(): ZestimateHistoryPoint as ZillowZestimateHistoryPoint, ) -__version__ = "0.87.0" +__version__ = "0.88.0" __all__ = [ # TikTok core models diff --git a/src/scrapebadger/_internal/client.py b/src/scrapebadger/_internal/client.py index 8198b46..bd071b7 100644 --- a/src/scrapebadger/_internal/client.py +++ b/src/scrapebadger/_internal/client.py @@ -59,7 +59,7 @@ _CONCURRENCY_ERRORS = frozenset({"concurrency_limit_exceeded", "trial_concurrency"}) # User agent for SDK requests -SDK_VERSION = "0.87.0" +SDK_VERSION = "0.88.0" USER_AGENT = f"scrapebadger-python/{SDK_VERSION}" diff --git a/src/scrapebadger/google/jobs.py b/src/scrapebadger/google/jobs.py index c727f81..03bd41c 100644 --- a/src/scrapebadger/google/jobs.py +++ b/src/scrapebadger/google/jobs.py @@ -16,21 +16,19 @@ class JobsClient: Two data sources are available via ``mode``: - - ``"rpc"`` (default, ~1-2 s) — Google Careers' own batchexecute - RPC. Returns structured JSON with rich per-job fields (title, - company, locations, posted_at ISO, qualifications + responsibilities - bullets, apply URL). Scope: Google's own openings (~3-4k roles). - - ``"serp"`` — public Google Jobs vertical (aggregates LinkedIn / - Indeed / Built In / ZipRecruiter etc). Slower; filterable via - ``job_type``, ``date_posted``, ``ltype``, ``chips``, ``uds``, - ``uule``, ``lrad``. + - ``"serp"`` (default) — the public Google Jobs results, which + gather listings from employers and job boards (LinkedIn, Indeed, + Built In, ZipRecruiter and others). Filterable via ``job_type``, + ``date_posted``, ``ltype``, ``chips``, ``uds``, ``uule``, ``lrad``. + - ``"rpc"`` (~1-2 s) — Google Careers: only Google's own openings, + with rich per-job fields (qualifications and responsibilities + bullets, apply URL). Example: ```python jobs = await client.google.jobs.search( "software engineer", - mode="rpc", - language="en-US", + location="New York", ) ``` """ @@ -42,7 +40,7 @@ async def search( self, q: str, *, - mode: JobsMode = "rpc", + mode: JobsMode = "serp", location: str | None = None, gl: str = "us", country: str | None = None, @@ -62,7 +60,7 @@ async def search( Args: q: Job title or keywords. - mode: ``"rpc"`` (default, Google Careers) or ``"serp"``. + mode: ``"serp"`` (default, public Google Jobs) or ``"rpc"`` (Google Careers only). location: City / state / region (SERP mode). gl: Country code. country: Alias for ``gl``. diff --git a/uv.lock b/uv.lock index bf40110..29bff5b 100644 --- a/uv.lock +++ b/uv.lock @@ -930,7 +930,7 @@ wheels = [ [[package]] name = "scrapebadger" -version = "0.87.0" +version = "0.88.0" source = { editable = "." } dependencies = [ { name = "httpx" },