mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
initial update cli.py
This commit is contained in:
parent
a4195e1a83
commit
a97bd3826a
@ -340,6 +340,9 @@ def brozzler_worker(argv=None):
|
||||
arg_parser.add_argument(
|
||||
'--skip-youtube-dl', dest='skip_youtube_dl',
|
||||
action='store_true', help=argparse.SUPPRESS)
|
||||
arg_parser.add_argument(
|
||||
'--skip-browserless', dest='skip_browserless',
|
||||
action='store_true', help=argparse.SUPPRESS)
|
||||
arg_parser.add_argument(
|
||||
'--stealth', dest='stealth', action='store_true',
|
||||
help='Try to avoid web bot detection')
|
||||
@ -347,7 +350,11 @@ def brozzler_worker(argv=None):
|
||||
|
||||
args = arg_parser.parse_args(args=argv[1:])
|
||||
configure_logging(args)
|
||||
brozzler.chrome.check_version(args.chrome_exe)
|
||||
|
||||
if skip_browserless:
|
||||
brozzler.chrome.check_version(args.chrome_exe)
|
||||
else:
|
||||
chrome_exe = 'browserless'
|
||||
|
||||
def dump_state(signum, frame):
|
||||
signal.signal(signal.SIGQUIT, signal.SIG_IGN)
|
||||
|
Loading…
x
Reference in New Issue
Block a user