Skip to content

fix(crawl): send zenrows/<version> python from the Crawl client - #63

Merged
StefanoGuerrini merged 2 commits into
mainfrom
claude/crawl-client-logging-z36g0m
Oct 19, 2026
Merged

StefanoGuerrini merged 2 commits into
mainfrom
claude/crawl-client-logging-z36g0m

Conversation

@zenrows-dev-pool

@zenrows-dev-pool zenrows-dev-pool Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Crawl client in the Python software development kit (SDK) now sends the scraping client's User-Agent, zenrows/<version> python. The API already reads that as Python SDK traffic. Its usage numbers then count crawls from the SDK as the SDK, not as plain API calls.

What the task asked for

The API could not tell crawls created from the Python SDK apart from direct HTTP calls. The Crawl client sent zenrows-crawl-python/<version>, which the API does not recognise. The Batch client is out of scope and keeps its current User-Agent.

How the check confirmed it

Check Result
pytest tests/test_crawl_client.py tests/test_batch_client.py 115 passed

Encoded by: the User-Agent assertion added to tests/test_crawl_client.py.

How to try it

Run the tests above.

Provenance

  • zenrows/<version> python is DEFAULT_USER_AGENT in src/zenrows/client.py.
  • A caller who passes user_agent= keeps their own value.

Review

Pass Model Findings
1, self-review claude-opus-5-5 None

Human must verify:

  • Nothing outside the SDK depends on the old zenrows-crawl-python value.

Deviations

None.

Record owed

None.

StefanoGuerrini and others added 2 commits October 19, 2026 14:03
…ients

Every client in the Python SDK now sends the same User-Agent as the scraping
client, so the API reads Crawl and Batch requests as Python SDK traffic. The
Crawl client sent zenrows-crawl-python/<version>, and the Batch client
zenrows-batch-python/<version>.
This change is about Crawl only. The Batch client keeps sending
zenrows-batch-python/<version>, as on main.
@zenrows-dev-pool zenrows-dev-pool Bot changed the title fix(crawl): send zenrows/<version> python from the Crawl and Batch clients fix(crawl): send zenrows/<version> python from the Crawl client Oct 19, 2026
@StefanoGuerrini
StefanoGuerrini self-requested a review October 19, 2026 14:26
@StefanoGuerrini
StefanoGuerrini merged commit b397bb6 into main Oct 19, 2026
3 checks passed
@StefanoGuerrini
StefanoGuerrini deleted the claude/crawl-client-logging-z36g0m branch October 19, 2026 14:27
@github-actions github-actions Bot mentioned this pull request Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant