0.3.0 • Published 4 years ago

@achannarasappa/locust-cli v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Quick Start

npm install @achannarasappa/locust-cli
❯ locust
locust <command>

Commands:
  locust run       run in single job mode
  locust start     starts a job and crawls until a stop condition is met
  locust stop      Stop running jobs and stop redis and browserless containers
  locust generate  generate a job definition through a series of prompts
  locust validate  validate a job definition
  locust info      information on queue state and jobs in each status

Options:
  -v, --version  Show version number                                   [boolean]
  -h, --help     Show help                                             [boolean]

Features

Generate a job definition file

Interactively generate a job definition file with locust generate by answering a set of prompts.

Test CSS selectors and data extraction logic

Running a job with locust run makes a request to the entrypoint url and runs the extract hook which is a lightweight way to test that the defined CSS selectors and other data extraction logic works as expected.

Start a job locally before pushing to a cloud provider

Simulate and debug a job run on a cloud provider without pushing up code or provisioning infrastructure. locust start will run a job as it would on a cloud provider and presents a dashboard to help understand what the job is doing and identify potential problem areas.

Reference