README.md | 4 years ago | ||
index.js | 4 years ago | ||
package.json | 4 years ago |
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