From ab39c3402f67f545d5442e848fcc9ae5af017618 Mon Sep 17 00:00:00 2001 From: NotoriousRebel Date: Mon, 29 Jun 2020 18:28:34 -0400 Subject: [PATCH] Limited number of resources spawned. --- theHarvester/screenshot/screenshot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theHarvester/screenshot/screenshot.py b/theHarvester/screenshot/screenshot.py index d2373b46..57b679ef 100644 --- a/theHarvester/screenshot/screenshot.py +++ b/theHarvester/screenshot/screenshot.py @@ -65,8 +65,8 @@ async def take_screenshot(url): try: browser = await launch(headless=True, ignoreHTTPSErrors=True, args=["--no-sandbox"]) page = await browser.newPage() - # 45 second timeout - page.setDefaultNavigationTimeout(40000) + # 50 second timeout + page.setDefaultNavigationTimeout(50000) await page.setUserAgent( 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36') # default timeout of 30 seconds