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
Hashes for playwrightcapture-1.27.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fee5fa4251cf3eb0e5d790ae5b35fde5949bbc4f61de9175ccfc539d6dc7a03 |
|
MD5 | 332728fc340791dab8ac2e17a078c386 |
|
BLAKE2b-256 | 338d4ebb80f82be4492b9f9100d89d4bb8d6038235875e28db71814696f44038 |