mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-07 05:52:27 -04:00
initial update chrome.py
This commit is contained in:
parent
a97bd3826a
commit
cde49e2a10
1 changed files with 10 additions and 5 deletions
|
@ -74,11 +74,16 @@ class Chrome:
|
||||||
ignore_cert_errors: configure chrome to accept all certs (default
|
ignore_cert_errors: configure chrome to accept all certs (default
|
||||||
False)
|
False)
|
||||||
'''
|
'''
|
||||||
self.port = port
|
if chrome_exe == 'browserless':
|
||||||
self.chrome_exe = chrome_exe
|
# init browserless here maybe
|
||||||
self.ignore_cert_errors = ignore_cert_errors
|
pass
|
||||||
self._shutdown = threading.Event()
|
else:
|
||||||
self.chrome_process = None
|
# use a local browser
|
||||||
|
self.port = port
|
||||||
|
self.chrome_exe = chrome_exe
|
||||||
|
self.ignore_cert_errors = ignore_cert_errors
|
||||||
|
self._shutdown = threading.Event()
|
||||||
|
self.chrome_process = None
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue