Code Monkey home page Code Monkey logo

auto-capture's Introduction

auto-capture

PhntomJSCasperJS で複数ページを自動的にキャプチャします。

モジュールをインストール

Mac

PhantomJS と CasperJS をインストール

$ npm install -g phantomjs casperjs

確認

$ phantomjs --version
2.0.0
$ casperjs --version
1.1.0-beta5

Windows

zipをダウンロード

zipを解凍し適当なディレクトリに配置

  • c:\phantomjs
  • c:\casperjs

環境変数にPATHを追記

  • 変数名:PATH
  • 変数値:;C:\phantomjs¥bin;C:\casperjs¥bin

確認

$ phantomjs --version
2.0.0
$ casperjs --version
1.1.0-beta5

使い方

  1. ここのファイルを git cloneダウンロード

  2. list.csv にキャプチャーするURLと保存するファイル名を記載する

  3. device.csv にキャプチャーしたい任意のデバイス情報を記載する

  4. コマンドで実行

コマンド例

width: 1280 でキャプチャする場合

$ casperjs capture.js

任意のデバイスサイズでキャプチャする場合(device.csvに記載があるもの)

$ casperjs capture.js pc

Basic認証があるページをキャプチャする場合

$ casperjs capture.js pc --id=UserName --pass=Password

auto-capture's People

Contributors

hnikaido avatar naogify avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.