From 9dbeed2da81521d03a0e9c7aaf3dd15b038a58e1 Mon Sep 17 00:00:00 2001 From: Rennan Cordeiro Date: Tue, 14 Feb 2023 14:58:19 -0300 Subject: [PATCH] Update middlewares.py --- src/scrapy_puppeteer/scrapy_puppeteer/middlewares.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scrapy_puppeteer/scrapy_puppeteer/middlewares.py b/src/scrapy_puppeteer/scrapy_puppeteer/middlewares.py index 40c14af0..abfd712f 100644 --- a/src/scrapy_puppeteer/scrapy_puppeteer/middlewares.py +++ b/src/scrapy_puppeteer/scrapy_puppeteer/middlewares.py @@ -125,7 +125,7 @@ async def _process_request(self, request, spider): self.browser = await launch({ 'executablePath': chromium_executable(), 'headless': True, - 'args': ['--no-sandbox'], # '--single-process', '--no-zygote', + 'args': ['--no-sandbox', '--single-process', '--no-zygote'], # '--single-process', '--no-zygote', 'dumpio': True }) await self.browser.newPage()