WebSkrap
Async-first Python scraping on Playwright, with persistent sessions, resource routing, Patchright stealth, web search, a CLI, and an MCP server for agents.
Install
pip install webskrap
webskrap install
Quickstart
import asyncio
from webskrap import WebSkrapClient
async def main() -> None:
async with WebSkrapClient() as client:
result = await client.fetch("https://example.com")
print(result.status, result.title)
print(result.text[:200])
asyncio.run(main())
Search
A search loads the engine's results page in the same stealth browser and
returns the organic hits. Click-tracking redirects are unwrapped, so each
url is the destination itself. Bing is the default; use engine="ddg" for
DuckDuckGo's HTML endpoint. Google is not offered.
async with WebSkrapClient() as client:
result = await client.search("example domain", max_results=5)
for hit in result.hits:
print(hit.title, hit.url)
webskrap search "example domain" --engine ddg --max-results 10 --format json
When an engine distrusts the exit address it serves a bot challenge. That
comes back as a blocked error, not as zero hits. Switch engine, reuse a
persistent profile, or change the exit IP. WebSkrap does not retry and does
not solve CAPTCHAs.
Documentation
Security
Persistent browser sessions keep Chromium's OS sandbox, store their profiles
0700, and confine MCP screenshot output to ./webskrap-output. See
SECURITY.md for the security model and how to report a
vulnerability, and CHANGELOG.md for what changed.
Contributing
See CONTRIBUTING.md for setup, checks, and pull request expectations.
Release files for webskrap 2.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| webskrap-2.5.0.tar.gz | 225.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| webskrap-2.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 311.6 kB
Release files / webskrap-2.5.0.tar.gz
| Download URL | webskrap-2.5.0.tar.gz |
|---|---|
| Size | 225.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db5b95f347cd64d3c8dddca94d38c456cf5b239f3fe03383615ea0b17f9827a6
|
|
BLAKE2b-256 checksum How to use checksums |
0fc0878ffd221f8936b61c99008f1f7eb0a06adffe37984ef6a2a183ce6c5fcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / webskrap-2.5.0-py3-none-any.whl
| Download URL | webskrap-2.5.0-py3-none-any.whl |
|---|---|
| Size | 86.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33927785886d8d8f1542137e54166a5051d5c59b77bcbe197cf55ff89ff68979
|
|
BLAKE2b-256 checksum How to use checksums |
e15c552e70a93e73e500090a3c82254d65337e42163ff5707752a31700be0377
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency log