Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Capture the web page with Phantomjs
branch: master

This branch is 94 commits behind superbrothers:master

Failed to load latest commit information.
lib Fix invalid code for jshint
.gitignore update
LICENSE.txt Initial commit
Makefile Fix invalid code for jshint
README.md
capture.js Fix invalid code for jshint
opts.json
package.json

README.md

Capturejs

Installation

$ brew install phantomjs
$ npm install -g capturejs

Usage

Usage: capturejs [options]
URI
    -u, --uri <value> (required)
Output Image File
    -o, --output <value> (required)
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>

Quick Start

$ capturejs --uri http://tiqav.com/ \
            --selector 'header .wrapper' \
            --output tiqav_header.png

tiqav_header.png

$ capturejs --uri http://tiqav.com/ \
            --selector 'header .wrapper' \
            --javascript-file tiqav_hide_logo.js \
            --output tiqav_header.png
// tiqav_hide_logo.js
document.querySelector("#logo").style.visibility = "hidden";

tiqav_header_hide_logo.png

Copyright

Copyright (c) 2012 Kazuki Suda. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.