Skip to content

dsppman/playwright-spy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages