diff --git a/README.md b/README.md index e69de29..94dc6d7 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,19 @@ +# Puppeteer サンプル + +## Puppeteer + +https://github.com/puppeteer/puppeteer + +## 実行方法 + +``` +$ npm run captor +``` +(index.jsを実行するだけ) + + +- 画面全体をキャプチャ(fullPageを指定しなければ一定の範囲でキャプチャ) +https://pied-piper.net/gitbucket/sample-node.js/sample-puppeteer/blob/6989cace089cd99b6ce1d23c535fadb05540f29c/index.js#L8-L10 + +- セレクタで指定した場所を画面キャプチャ +https://pied-piper.net/gitbucket/sample-node.js/sample-puppeteer/blob/6989cace089cd99b6ce1d23c535fadb05540f29c/index.js#L12-L15