From b1e353d1f19bccbde714b0c74338368615b4ca5a Mon Sep 17 00:00:00 2001 From: yech Date: Sun, 4 Mar 2018 14:25:13 +0800 Subject: [PATCH] add args '--no-sandbox' add args '--no-sandbox' --- requests_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests_html.py b/requests_html.py index fab76a9..5e222a2 100644 --- a/requests_html.py +++ b/requests_html.py @@ -464,7 +464,7 @@ class HTML(BaseParser): """ async def _async_render(*, url: str, script: str = None, scrolldown, sleep: int, wait: float, reload, content: Optional[str], timeout: Union[float, int]): try: - browser = pyppeteer.launch(headless=True) + browser = pyppeteer.launch(headless=True, args=['--no-sandbox']) page = await browser.newPage() # Wait before rendering the page, to prevent timeouts.