mirror of
https://github.com/openzim/zimit.git
synced 2025-12-31 04:23:15 +00:00
Merge pull request #198 from f0sh/add-config
added crawler --config option to arguments
This commit is contained in:
commit
47ede96f91
1 changed files with 7 additions and 0 deletions
7
zimit.py
7
zimit.py
|
|
@ -317,6 +317,12 @@ def zimit(args=None):
|
|||
help="If set, output stats as JSON to this file",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--config",
|
||||
help="Path to YAML config file. If set, browsertrix-crawler will use this file"
|
||||
"to configure the crawling behaviour if not set via argument.",
|
||||
)
|
||||
|
||||
zimit_args, warc2zim_args = parser.parse_known_args(args)
|
||||
|
||||
# pass url and output to warc2zim also
|
||||
|
|
@ -488,6 +494,7 @@ def get_node_cmd_line(args):
|
|||
"timeLimit",
|
||||
"healthCheckPort",
|
||||
"overwrite",
|
||||
"config",
|
||||
]:
|
||||
value = getattr(args, arg)
|
||||
if value:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue