mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-20 23:37:00 +08:00
Merge pull request #974 from cesarhub/patch-1
This commit is contained in:
commit
d074a03ae0
|
@ -73,7 +73,8 @@ async def take_screenshot(self, url):
|
|||
print(f'Attempting to take a screenshot of: {url}')
|
||||
browser = await launch(headless=True, ignoreHTTPSErrors=True, args=["--no-sandbox"])
|
||||
context = await browser.createIncognitoBrowserContext()
|
||||
page = await browser.newPage()
|
||||
# Create a new page in a pristine context.
|
||||
page = await context.newPage()
|
||||
path = fr'{self.output}{self.slash}{url.replace("http://", "").replace("https://", "")}.png'
|
||||
date = str(datetime.utcnow())
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue