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.8.tar.gz (32.0 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.8-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: playwrightcapture-1.40.8.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for playwrightcapture-1.40.8.tar.gz
Algorithm Hash digest
SHA256 e2cd157eb2e9f3844d4efb0289989edbdb637ebdd03b5f694b46dd8bedbb08b7
MD5 0ee203c598776bf97ec0f24bb14a63a6
BLAKE2b-256 a9dd55c1e19060983af29e19ba4bc10f0cd9230a9e60b7407e783601ca498795

See more details on using hashes here.

Provenance

The following attestation bundles were made for playwrightcapture-1.40.8.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.8-py3-none-any.whl.

File metadata

File hashes

Hashes for playwrightcapture-1.40.8-py3-none-any.whl
Algorithm Hash digest
SHA256 57b06b1efbf07e65be38325071a4c88151503cc3cc16a6b601a4e039a37cafa4
MD5 9c813e78d8538d173ff73a64a04127d5
BLAKE2b-256 f82d7dba864e06b92408273808ab96cbcb809f7272d85edff844585eb93fe091

See more details on using hashes here.

Provenance

The following attestation bundles were made for playwrightcapture-1.40.8-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 Sentry Error logging StatusPage Status page