mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 06:23:16 +00:00
Support loading custom behaviors from URLs and/or filepaths (#707)
Fixes #368 The `--customBehaviors` flag is now an array, making it repeatable. This should be backwards compatible with the CLI flag, but may require changes to YAML configs when custom behaviors are used. Custom behaviors can be loaded from URLs, local filepaths, and paths to local directories, including any combination thereof. New tests are added to ensure loading behaviors from URLs as well as a mixed combination of URL and filepath works as expected. --------- Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
This commit is contained in:
parent
e5bab8e7c8
commit
2a9b152531
8 changed files with 142 additions and 40 deletions
|
@ -246,9 +246,11 @@ Options:
|
|||
ailOnFailedSeed may result in crawl
|
||||
failing due to non-200 responses
|
||||
[boolean] [default: false]
|
||||
--customBehaviors injects a custom behavior file or se
|
||||
t of behavior files in a directory
|
||||
[string]
|
||||
--customBehaviors Custom behavior files to inject. Val
|
||||
ues can be URLs, paths to individual
|
||||
behavior files, or paths to a direct
|
||||
ory of behavior files.
|
||||
[array] [default: []]
|
||||
--debugAccessRedis if set, runs internal redis without
|
||||
protected mode to allow external acc
|
||||
ess (for debugging) [boolean]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue