Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer authored Sep 13, 2023
1 parent 824ba5b commit 9f3243b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,13 +490,16 @@ See [Browsertrix Behaviors](https://github.com/webrecorder/browsertrix-behaviors

With version 0.9.0, Browsertrix Crawler includes a `--pageExtraDelay`/`--delay` option, which can be used to have the crawler sleep for a configurable number of seconds after behaviors before moving on to the next page.

Custom behaviours can also be mounted into the crawler and loaded from there. For example:
### Additional Custom Behaviors

```zsh
Custom behaviours can now also be mounted into the crawler and loaded from there. For example:

```sh
docker run -v $PWD/test-crawls:/crawls -v $PWD/tests/custom-behaviors/:/custom-behaviors/ webrecorder/browsertrix-crawler crawl --url https://example.com/ --customBehaviors /custom-behaviors/
```

Which will load all the custom behaviors stored in the `tests/custom-behaviors` directory.
This will load all the custom behaviors stored in the `tests/custom-behaviors` directory. The first behavior which returns true for `isMatch()` will be run on a given page.
Each behavior should container a single class that implements the behavior interface. See [the behaviors tutorial](https://github.com/webrecorder/browsertrix-behaviors/blob/main/docs/TUTORIAL.md) for more info on how to write behaviors.

### Screenshots

Expand Down

0 comments on commit 9f3243b

Please sign in to comment.