Skip to main content

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).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

playwrightcapture-1.40.3.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

playwrightcapture-1.40.3-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

Details for the file playwrightcapture-1.40.3.tar.gz.

File metadata

  • Download URL: playwrightcapture-1.40.3.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for playwrightcapture-1.40.3.tar.gz
Algorithm Hash digest
SHA256 0796cca8e8247a8b172a6adfd91253edb20d4214e1a3956667fdf5e6acda2827
MD5 64301d604089b374f7c966c9ffc5cffd
BLAKE2b-256 0f740bd1bc921108c926e7a2f3b13571acd282c731693142b45bcf2b3cd4f9bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for playwrightcapture-1.40.3.tar.gz:

Publisher: release.yml on Lookyloo/PlaywrightCapture

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file playwrightcapture-1.40.3-py3-none-any.whl.

File metadata

File hashes

Hashes for playwrightcapture-1.40.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd9504a0e026dea24dd8290673e92530d4d64b9230498bc20eaaa417f550271
MD5 8ed1286f33d5ef8c214d65c3a2a14464
BLAKE2b-256 2178ed0ed971c3018d11c2f85a8cb0bcaacc7834957321dc90027845d7a30ccd

See more details on using hashes here.

Provenance

The following attestation bundles were made for playwrightcapture-1.40.3-py3-none-any.whl:

Publisher: release.yml on Lookyloo/PlaywrightCapture

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page