_PlaywrightCrawlerAdditionalOptions
Hierarchy
- _PlaywrightCrawlerAdditionalOptions
Index
Properties
browser_launch_options
Keyword arguments to pass to the browser launch method. These options are provided
directly to Playwright's browser_type.launch method. For more details, refer to the Playwright
documentation: https://playwright.dev/python/docs/api/class-browsertype#browser-type-launch.
This option should not be used if browser_pool is provided.
browser_new_context_options
Keyword arguments to pass to the browser new context method. These options are provided directly to Playwright's
browser.new_context method. For more details, refer to the Playwright documentation:
https://playwright.dev/python/docs/api/class-browser#browser-new-context. This option should not be used if
browser_pool is provided.
browser_pool
A BrowserPool instance to be used for launching the browsers and getting pages.
browser_type
The type of browser to launch:
- 'chromium', 'firefox', 'webkit': Use Playwright-managed browsers
- 'chrome': Use your locally installed Google Chrome browser. Requires Google Chrome to be installed on the system.
This option should not be used if
browser_poolis provided.
headless
Whether to run the browser in headless mode. This option should not be used if browser_pool is provided.
Additional arguments for the
PlaywrightCrawlerconstructor.It is intended for typing forwarded
__init__arguments in the subclasses. All arguments areBasicCrawlerOptions+_PlaywrightCrawlerAdditionalOptions