Can't get website image

隐身守侯 提交于 2020-01-16 04:32:20

问题


I am using PhantomJS to capture an image of a website built using Polymer. Here is my capture.js file:

var page = require('webpage').create();
page.open('https://www.gosizzle.io/token/recruiting/957e73c45b55129b1a', function() {
  page.render('test1.png');
  phantom.exit();
});

However when I run

phantomjs capture.js

my test1.png only contains the footer of the website:

来源:https://stackoverflow.com/questions/35610392/cant-get-website-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!