Reorganise gists folder
This commit is contained in:
18
codegrab/screen2.js
Normal file
18
codegrab/screen2.js
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
var page = require('webpage').create(),
|
||||
url = 'https://mobile.twitter.com/carlomasala1/status/1490645423257706498',
|
||||
w = 1920,
|
||||
h = 8000
|
||||
|
||||
page.viewportSize = { width: w, height: h }
|
||||
page.open(url, function(status) {
|
||||
if (status !== 'success') {
|
||||
console.log('Unable to load url: ' + url)
|
||||
} else {
|
||||
window.setTimeout(function() {
|
||||
page.clipRect = { top: 0, left: 0, width: w, height: h }
|
||||
page.render('img.png')
|
||||
phantom.exit()
|
||||
}, 20000)
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user