Skip to content

This tool is capture in automatically with Phantom.js and Casper.js

Notifications You must be signed in to change notification settings

cawpea/auto-capture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Capture

概要

PhantomJSとCasperJSを使用して、Webページを自動でキャプチャします。 レンダリングはヘッドレスブラウザのPhantomJSを使用するので、Webkitベースのレンダリングになります。

事前準備

使い方

  1. inputフォルダ内のcapture-list.jsonにキャプチャしたいURLと保存時のファイル名を記述

  2. コマンドラインでcapture.jsを実行

//PCサイズでキャプチャしたい場合
casperjs capture.js

//SPサイズでキャプチャしたい場合
casperjs capture.js sp

//TABLETサイズでキャプチャしたい場合
casperjs capture.js tablet

Basic認証を行う場合は以下のようにオプションを指定して実行

casperjs capture.js --id=yourid --pass=yourpass

imageフォルダ内にキャプチャした画像が保存されます。

About

This tool is capture in automatically with Phantom.js and Casper.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published