elm.web.utilities.PWKwargs

class PWKwargs[source]

Bases: object

Class to compile Playwright launch and context arguments

Methods

context_kwargs(browser_type[, ...])

dict: kwargs to use for browser.new_context()

launch_kwargs()

dict: kwargs to use for playwright.chromium.launch()

stealth_scripts()

iterator: Iterator of scrapling scripts to use for stealth

Attributes

SKIP_SCRIPS

List of scrapling stealth script names to skip

USE_REALISTIC_VIEWPORTS

Use realistic viewport sizes for the browser context

SKIP_SCRIPS = []

List of scrapling stealth script names to skip

USE_REALISTIC_VIEWPORTS = True

Use realistic viewport sizes for the browser context

Type:

bool

classmethod launch_kwargs()[source]

dict: kwargs to use for playwright.chromium.launch()

classmethod context_kwargs(browser_type, ignore_https_errors=False)[source]

dict: kwargs to use for browser.new_context()

classmethod stealth_scripts()[source]

iterator: Iterator of scrapling scripts to use for stealth