scrapy-plugins / scrapy-playwright

🎭 Playwright integration for Scrapy
BSD 3-Clause "New" or "Revised" License
911 stars 101 forks source link

Activating chromium_sandbox in PLAYWRIGHT_LAUNCH_OPTIONS #273

Closed jkobti closed 1 month ago

jkobti commented 1 month ago

Hello,

I tried to activate the chromium_sandbox by adding "chromium_sandbox": True to the PLAYWRIGHT_LAUNCH_OPTIONS, also obviously I am using chromium browser. However, I didn't see any related logs that could confirm whether the browser was launched with sandbox.

Could you please clarify if what I have done is sufficient? If not, could you guide me on the correct way to do this?

elacuesta commented 1 month ago

As the docs say, values for PLAYWRIGHT_LAUNCH_OPTIONS are passed to BrowserType.launch. The chromium_sandbox argument is listed there so I'd say that should be enough. This plugin doesn't rely all logs from Playwright, that's probably why there is no specific message about this option.