Merge pull request #93 from yech1990/master

add args '--no-sandbox'
This commit is contained in:
2018-03-04 07:17:48 -05:00
committed by GitHub
+1 -1
View File
@@ -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.