Command Line Interface

Installation

The command line interface (CLI) is bundled with the Python client. Installation is via pip:

pip install screenshotapi

It is compataible with Python 2 and 3.

Usage

Example usage:

$ export SCREENSHOTAPI_KEY=your-key-goes-here
$ screenshotapi --url http://amazon.com \
              --viewport 1200x800 \
              --webdriver firefox \
              --wait-seconds 0 \
              --save-path ./

For a full list of arguments, use screenshotapi --help

Note that you can provide a SCREENSHOTAPI_KEY environment variable that can then be used for subsequent calls as shown in the example above, or you can use an --apikey argument on each call.