A simple library to capture websites using playwright
Project description
Playwright Capture
Simple replacement for splash using playwright.
Install
pip install playwrightcapture
Usage
A very basic example:
from playwrightcapture import Capture
async with Capture() as capture:
await capture.initialize_context()
entries = await capture.capture_page(url, max_depth_capture_time=90)
Entries is a dictionaries that contains (if all goes well) the HAR, the screenshot, all the cookies of the session, the URL as it is in the browser at the end of the capture, and the full HTML page as rendered.
reCAPTCHA bypass
No blackmagic, it is just a reimplementation of a well known technique as implemented there, and there.
This modules will try to bypass reCAPTCHA protected websites if you install it this way:
pip install playwrightcapture[recaptcha]
This will install requests, pydub and SpeechRecognition. In order to work, pydub
requires ffmpeg or libav, look at the install guide
for more details.
SpeechRecognition uses the Google Speech Recognition API to turn the audio file into text (I hope you appreciate the irony).
Project details
Release history Release notifications | RSS feed
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 playwrightcapture-1.36.5.tar.gz.
File metadata
- Download URL: playwrightcapture-1.36.5.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef8cfd1eecc9c7c225a94df0ccc5cba47d1b254fb6c0b458c4c4da484f96344f
|
|
| MD5 |
f43cd9ddf9db6455b67af1134cb5fc34
|
|
| BLAKE2b-256 |
b6bd1192e068c48287a651359bf490d5c1935e9298d72cc637af92fb1b7a5154
|
Provenance
The following attestation bundles were made for playwrightcapture-1.36.5.tar.gz:
Publisher:
release.yml on Lookyloo/PlaywrightCapture
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
playwrightcapture-1.36.5.tar.gz -
Subject digest:
ef8cfd1eecc9c7c225a94df0ccc5cba47d1b254fb6c0b458c4c4da484f96344f - Sigstore transparency entry: 903786515
- Sigstore integration time:
-
Permalink:
Lookyloo/PlaywrightCapture@0fb0839563f9b174bdf64d035d3c28eb55f08a12 -
Branch / Tag:
refs/tags/v1.36.5 - Owner: https://github.com/Lookyloo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0fb0839563f9b174bdf64d035d3c28eb55f08a12 -
Trigger Event:
release
-
Statement type:
File details
Details for the file playwrightcapture-1.36.5-py3-none-any.whl.
File metadata
- Download URL: playwrightcapture-1.36.5-py3-none-any.whl
- Upload date:
- Size: 29.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42bd7c6c189d6607b211f9d2cd4f888fb8e9d4f0e9d8ef3836c61443cbde61a4
|
|
| MD5 |
9390f32aedc6586cac43c6e46d703063
|
|
| BLAKE2b-256 |
1734832c386fa5345e0f600278576ae7a54e4e8ebc76c9a726c82eefb3b0aee9
|
Provenance
The following attestation bundles were made for playwrightcapture-1.36.5-py3-none-any.whl:
Publisher:
release.yml on Lookyloo/PlaywrightCapture
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
playwrightcapture-1.36.5-py3-none-any.whl -
Subject digest:
42bd7c6c189d6607b211f9d2cd4f888fb8e9d4f0e9d8ef3836c61443cbde61a4 - Sigstore transparency entry: 903786577
- Sigstore integration time:
-
Permalink:
Lookyloo/PlaywrightCapture@0fb0839563f9b174bdf64d035d3c28eb55f08a12 -
Branch / Tag:
refs/tags/v1.36.5 - Owner: https://github.com/Lookyloo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0fb0839563f9b174bdf64d035d3c28eb55f08a12 -
Trigger Event:
release
-
Statement type: