elm.web.utilities.pw_page
- pw_page(browser, intercept_routes=False, stealth_config=None, ignore_https_errors=False)[source]
Create new page from playwright browser context
- Parameters:
browser (
playwright.Browser
) – A playwright browser instance.intercept_routes (bool, default=False) – Option to intercept all requests and abort blocked ones. Be default,
False
.stealth_config (
playwright_stealth.StealthConfig
, optional) – Optional playwright stealth configuration object. By default,None
, which uses all the default stealth options.ignore_https_errors (bool, default=False) – Option to ignore https errors (i.e. SSL cert errors). This is not generally safe to do - you are susceptible to MITM attacks. However, if you are doing a simple scrape without providing any sensitive information (which you probably shouldn’t be doing programmatically anyways), then it’s probably ok to ignore these errors. By default,
False
.
- Yields:
playwright.Page
– A new page that can be used for visiting websites.