screenshot-phantom
Websites screenshots timer in Node.js
Features
- uses phantom.js
- Screenshot output picture files
- Multiple screenshots at the same time
- simple api
Sketch
Regularly perform a screenshot task, the whole process of a task is: open the page => wait for resources to load => screenshots => close page => open the next page (if the screen at the same time multiple sites) ... ...
Install
npm install --save screenshot-phantom
Usage
const screenshot = ; ;
Example 1
const screenshot = ; ;
or
const screenshot = ;const schedule = ;const rule = ;rulesecond = 0; ;
or
const screenshot = ;const rule = '0 * * * * *'; ;
The same result:
Example 2
const screenshot = ;const rule = '0 * * * * *'; ;
Result:
Demo
$ npm demo
Links
https://github.com/node-schedule/node-schedule
Contributing
Contributions welcome.