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.2.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.2-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: playwright-spy-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e73c5ea63af23111d28c1a34b806555d72bcf7d1cbd2d655a6ea0765a91d34d7
MD5 0c9522380e7b2638f7b5cb38618f336f
BLAKE2b-256 6af053d0c4acedd8be66a6786a668d2c4f3fd6c492b248981240b8c497d0c994

See more details on using hashes here.

File details

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

File metadata

  • Download URL: playwright_spy-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ea560aeebaa800c1b55d18086b5491ac641e9b1cd1f046507164334380f2c8d
MD5 9e30383997a6aedcaef07bbdd15bd570
BLAKE2b-256 600c4a4c5530423aa100cba9ba294e99601fb75a2936eac90361a52da29207da

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