mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
Update archive_methods.py
This commit is contained in:
parent
a955ae613b
commit
10bb970d66
1 changed files with 3 additions and 2 deletions
|
@ -614,9 +614,10 @@ def fetch_git(link_dir, link, timeout=TIMEOUT):
|
||||||
}
|
}
|
||||||
|
|
||||||
def chrome_headless(binary=CHROME_BINARY, user_data_dir=CHROME_USER_DATA_DIR):
|
def chrome_headless(binary=CHROME_BINARY, user_data_dir=CHROME_USER_DATA_DIR):
|
||||||
args = [binary, '--headless'] # '--disable-gpu'
|
args = [binary, '--headless']
|
||||||
if not CHROME_SANDBOX:
|
if not CHROME_SANDBOX:
|
||||||
args.append('--no-sandbox')
|
# dont use GPU or sandbox when running inside docker container
|
||||||
|
args += ['--no-sandbox', '--disable-gpu']
|
||||||
default_profile = os.path.expanduser('~/Library/Application Support/Google/Chrome')
|
default_profile = os.path.expanduser('~/Library/Application Support/Google/Chrome')
|
||||||
if user_data_dir:
|
if user_data_dir:
|
||||||
args.append('--user-data-dir={}'.format(user_data_dir))
|
args.append('--user-data-dir={}'.format(user_data_dir))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue