Skip to main content

A plugin for playwright to prevent detection.

Project description

playwright-spy [GitHub Workflow Status

A plugin for playwright-python to prevent detection.

Install

pip install playwright-spy

Usage

Page

from playwright.sync_api import sync_playwright
import playwright_spy

with sync_playwright() as p:
    browser = p.chromium.launch()
    page = browser.new_page()
    playwright_spy.load_sync(page)
    page.goto("https://bot.sannysoft.com/")
    page.screenshot(path="example.png", full_page=True)
    browser.close()

Context

from playwright.sync_api import sync_playwright
import playwright_spy

with sync_playwright() as p:
    browser = p.chromium.launch()
    context = browser.new_context()
    playwright_spy.load_sync(context)

    page = context.new_page()
    page.goto("https://bot.sannysoft.com/")
    page.screenshot(path="example.png", full_page=True)
    browser.close()

Project details


Download files

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

Source Distribution

playwright-spy-1.0.1.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

playwright_spy-1.0.1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file playwright-spy-1.0.1.tar.gz.

File metadata

  • Download URL: playwright-spy-1.0.1.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for playwright-spy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 58fbcedbbd7cb97253e3e315c6cee49f09529a403c45cde62b3b026c153105e7
MD5 c2a705479f99ac65906047f4a8b5e591
BLAKE2b-256 1bddfb01a44a5aaf5123ce248f84ad7b660f3792952972298116f0b30cccc5f7

See more details on using hashes here.

File details

Details for the file playwright_spy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: playwright_spy-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for playwright_spy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d03516cd6fb0408476ec17b20aa0c3162f115866e20ed756df4bb1e859a2bd17
MD5 20d63f29a6318926fb721be02a25b60b
BLAKE2b-256 f7afbaa0d1f4056fdf241e9178dede5baeb241ae335baeb2671a9b0c3217d466

See more details on using hashes here.

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