<commit_before>CaptureJS
=========

CaptureJS is full webpage capture command-line tool with PhantomJS.

[![Build Status](https://travis-ci.org/superbrothers/capturejs.png?branch=master)](https://travis-ci.org/superbrothers/capturejs)

Installation
------------

First [install PhantomJS](http://phantomjs.org/download.html).


    $ npm install -g capturejs

Usage
-----

    Usage: capturejs [options]
    URI
        -u, --uri <value> (required)
    Output Image File
        -o, --output <value> (required)
    Sets the SSL protocol for secure connections (default is SSLv3) (sslv3|sslv2|tlsv1|any)
        -p, --ssl-protocol <value>
    Ignores SSL errors (expired/self-signed certificate errors)
        -I, --ignore-ssl-errors <value>
    CSS Selector
        -s, --selector <value>
    UserAgent
        -A, --user-agent <value>
    Inject external script code on Web page
        -J, --javascript-file <value>
    ViewPortSize {width}x{height}
        -V, --viewportsize <value>
    Cookies File
        -c, --cookies-file <value>
    HTTP Timeout (ms)
        -T, --timeout <value>
    Render Delay (ms)
        -R, --renderdelay <value>

Quick Start
-----------

    % capturejs --uri http://phantomjs.org/ \
                --selector '.header' \
                --viewportsize 1400x1400 \<commit_msg>docs(README): Update for zoomfactor option<commit_after>CaptureJS
=========

CaptureJS is full webpage capture command-line tool with PhantomJS.

[![Build Status](https://travis-ci.org/superbrothers/capturejs.png?branch=master)](https://travis-ci.org/superbrothers/capturejs)

Installation
------------

First [install PhantomJS](http://phantomjs.org/download.html).


    $ npm install -g capturejs

Usage
-----

    Usage: capturejs [options]

    URI
        -u, --uri <value> (required)
    Output Image File
        -o, --output <value> (required)
    Sets the SSL protocol for secure connections (default is SSLv3) (sslv3|sslv2|tlsv1|any)
        -p, --ssl-protocol <value>
    Ignores SSL errors (expired/self-signed certificate errors)
        -I, --ignore-ssl-errors <value>
    CSS Selector
        -s, --selector <value>
    UserAgent
        -A, --user-agent <value>
    Inject external script code on Web page
        -J, --javascript-file <value>
    ViewPortSize {width}x{height}
        -V, --viewportsize <value>
    Cookies File
        -c, --cookies-file <value>
    HTTP Timeout (ms)
        -T, --timeout <value>
    Render Delay (ms)
        -R, --renderdelay <value>
    Zoom Factor (default is 1.0, i.e. 100% zoom)
        -z, --zoomfactor <value>

Quick Start
-----------

    % capturejs --uri http://phantomjs.org/ \
                --selector '.header' \
                --viewportsize 1400x1400 \
{'fraction_non_alphanumeric': 0.14974433893352812, 'fraction_numerical': 0.010591672753834916, 'mean_word_length': 2.218566392479436, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6282650', 'n_tokens_mistral': 897, 'n_tokens_neox': 846, 'n_words': 233}