tourist

0.0.4 • Public • Published

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

Package Sidebar

Install

npm i tourist

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • jasondoyle