0.0.4 • Published 10 years ago

tourist v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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