-
Notifications
You must be signed in to change notification settings - Fork 0
/
webshots.js
33 lines (31 loc) · 874 Bytes
/
webshots.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const express = require('express')
const Pageres = require('pageres')
const webshots = require('./util/webshots')
console.log('Capturing pages:\n')
for (page in webshots.pages) {
if (webshots.pages.hasOwnProperty(page)) {
console.log(webshots.pages[page].url)
}
}
console.log('\n')
// TODO: make this take arguments
const pageresInstance = new Pageres({delay: 10})
// .src(
// webshots.pages.mtbva.url,
// webshots.resolutions,
// webshots.pages.mtbva.options)
// .src(
// webshots.pages.handsmith.url,
// webshots.resolutions,
// webshots.pages.handsmith.options)
.src(
webshots.pages.paddlemax.url,
webshots.resolutions,
webshots.pages.paddlemax.options)
// .src(pages.coledrums)
// .src(pages.webjam)
.dest(__dirname + '/static/img/webshots')
.run()
.then(() => {
console.log('Page capture done.\n')
})