tourist

Use phantomjs to take pictures of the web. Twirly hat optional.

npm install tourist
2 downloads in the last week
22 downloads in the last month

Tourist

Take screenshots of sites. Uses node-webshot, which in turn uses phantomjs.

Images are saved as base64 strings of pngs.

Installation

Install from npm:

    $ npm install -g tourist

Alternatively, you can clone the repository, install the required modules using npm, and run from bin/:

    $ git clone https://github.com/jasondoyle/tourist.git
    $ npm install
    $ bin/cmd.js

Usage

Tourist takes multiple options and a single argument for a file containing newline separated urls.

    tourist [options] <url file>

    Options:
         -c, --concurrency  Amount of concurrent requests  [default: 10]
         -u, --useragent    User-Agent string              [default: "Mozilla/5.0..]
         -h, --height       Screenshot height              [default: 400]
         -w, --width        Screenshot width               [default: 400]
         -p, --phantom      phantomjs path                 [default: "phantomjs"]
         -j, --json         Output JSON object
         -o, --out          Output file                    [default: "index.html"]
         -a, --append       Append to file
npm loves you