开发者

JavaScript -- take a picture of a website

On my website I want to load an image that is an exact picture of what you would see on your screen if you were scrolled to the top of a targ开发者_如何学Goet website -- just a snapshot with no functionality behind it. So if I ran this code with an NY Times article an image of the article's page would be returned. How do I do this?


You might look at Phantom JS. It includes a "render" method that can output a .png image of any rendered web page. See the "rendering" section of this phantomjs wiki page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜