node.js v12.10で座標での画面キャプチャを取得するサンプルを書きました。
探してもあまりネタが無かったので、お試しです。
puppeteerを使用するに当たり、ブラウザが必要になるようです。
AWSで利用する場合は、puppeteer(chrome付き)ではサイズオーバーみたいなので、
puppeteer-coreと、AWSの提供?するChromeアプリを指定してあげないと駄目みたいですね。
ソースはほとんど、他のサイトからのコピペです。
Go to list of users who liked
More than 3 years have passed since last update.
node.js v12.10で座標での画面キャプチャを取得するサンプルを書きました。
探してもあまりネタが無かったので、お試しです。
puppeteerを使用するに当たり、ブラウザが必要になるようです。
AWSで利用する場合は、puppeteer(chrome付き)ではサイズオーバーみたいなので、
puppeteer-coreと、AWSの提供?するChromeアプリを指定してあげないと駄目みたいですね。
ソースはほとんど、他のサイトからのコピペです。
Register as a new user and use Qiita more conveniently
Go to list of users who liked