You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fetch and stealth_fetch now expose text_only (default True), reusing
the existing client.fetch(text_only=...) path. Agents get clean visible
page text instead of raw HTML, ~5-10x fewer tokens. Pass text_only=False
for HTML. README and site copy lead with the LLM/agent story.
Bump 0.5.7 -> 0.5.8.
Copy file name to clipboardExpand all lines: README.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@
5
5
<h1align="center">WebSkrap</h1>
6
6
7
7
<palign="center">
8
-
<strong>Async-first Python scraping framework built on Playwright.</strong><br>
9
-
<em>It provides coherent browser profiles, persistent sessions, resource routing, and Patchright-powered stealth for data collection workflows that need realistic browser behavior.</em>
8
+
<strong>Async-first Python scraping framework built on Playwright — and a first-class web tool for LLMs and agents.</strong><br>
9
+
<em>Coherent browser profiles, persistent sessions, resource routing, and Patchright-powered stealth for data collection workflows that need realistic browser behavior. Ships an MCP server so Claude, Codex, and any MCP agent can fetch live pages as clean, token-efficient text.</em>
10
10
</p>
11
11
12
12
WebSkrap does not include CAPTCHA solving, login-wall bypassing, credential bypassing, or access-control circumvention. Use it only on targets you are allowed to access.
@@ -396,9 +396,18 @@ stderr is not a TTY.
396
396
397
397
## MCP server
398
398
399
-
WebSkrap ships an optional Model Context Protocol server so MCP clients (Claude
400
-
Desktop, Claude Code, ...) can drive scraping directly. It exposes three tools
401
-
over stdio: `fetch`, `stealth_fetch`, and `doctor`.
399
+
WebSkrap ships a Model Context Protocol server so MCP clients (Claude Desktop,
400
+
Claude Code, Codex, ...) can drive a real browser directly. It exposes three
401
+
tools over stdio: `fetch`, `stealth_fetch`, and `doctor`.
402
+
403
+
Built for LLMs: `fetch` and `stealth_fetch` return **clean visible page text by
404
+
default** — no HTML tags, scripts, or style noise — so agents spend tokens on
405
+
content, not markup (typically 5-10x fewer tokens than raw HTML). Pass
406
+
`text_only=False` when you actually need the HTML. `stealth_fetch` gives agents
407
+
the same CDP-leak-free Patchright path the CLI uses, so anti-bot pages that
408
+
block naive scrapers still load. Every result carries `status`, `final_url`,
409
+
`title`, `text_length`, and truncation flags so the model knows exactly what it
0 commit comments