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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webskrap-2.2.0.tar.gz.
File metadata
- Download URL: webskrap-2.2.0.tar.gz
- Upload date:
- Size: 208.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1429d459c1000b4e54d4cadd4542285276f06c20e200a9d37ab591bbb9a112f
|
|
| MD5 |
afa87ad9f1f4a180a9f7309ab31ac224
|
|
| BLAKE2b-256 |
3ce7549fd1b045b1bebdd90b54fde4dcbefaed6b148bc066a5640d9f6699cd81
|
Provenance
The following attestation bundles were made for webskrap-2.2.0.tar.gz:
Publisher:
workflow.yml on kacigaya/webskrap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webskrap-2.2.0.tar.gz -
Subject digest:
c1429d459c1000b4e54d4cadd4542285276f06c20e200a9d37ab591bbb9a112f - Sigstore transparency entry: 2842280657
- Sigstore integration time:
-
Permalink:
kacigaya/webskrap@ef6a45f2569fa3c0ac6313a869ef39feb59e84f7 -
Branch / Tag:
refs/tags/v2.2.0 - Owner: https://github.com/kacigaya
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@ef6a45f2569fa3c0ac6313a869ef39feb59e84f7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file webskrap-2.2.0-py3-none-any.whl.
File metadata
- Download URL: webskrap-2.2.0-py3-none-any.whl
- Upload date:
- Size: 76.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7652c8cf042de361782a030987a2fa2b94539aac3b14e3e0fc9baced942bf55e
|
|
| MD5 |
23158988b9fa56d7a609870e9dbf03cc
|
|
| BLAKE2b-256 |
66bc42d93f8cd1d6602070b0166907989d757eec8862f57c6f8ed97dc9378c7a
|
Provenance
The following attestation bundles were made for webskrap-2.2.0-py3-none-any.whl:
Publisher:
workflow.yml on kacigaya/webskrap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webskrap-2.2.0-py3-none-any.whl -
Subject digest:
7652c8cf042de361782a030987a2fa2b94539aac3b14e3e0fc9baced942bf55e - Sigstore transparency entry: 2842280772
- Sigstore integration time:
-
Permalink:
kacigaya/webskrap@ef6a45f2569fa3c0ac6313a869ef39feb59e84f7 -
Branch / Tag:
refs/tags/v2.2.0 - Owner: https://github.com/kacigaya
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@ef6a45f2569fa3c0ac6313a869ef39feb59e84f7 -
Trigger Event:
release
-
Statement type: