CNode

如何用nodejs去做网页截图呢?

Ddgunzi发布于13 年前最后回复13 年前3 回复18299 浏览0 收藏

想做个东西,想到这样一个需求。怎么用nodejs去做网页截图?类似于谷歌浏览器这种 enter image description here

查看回复

回复 (3)

B
buweichiu#1·13 年前

或許可以看看 http://phantomjs.org/ 這東西是沒窗口的 webkit

Y
ym1623#2·13 年前

可以做,你可以安装phantom.js,地址:http://phantomjs.org 安装好后把使用环境设置我公共的,然后在用node-phantom包去做, npm install phantom phantom 地址:https://github.com/sgentle/phantomjs-node

D
dgunzi#3·13 年前

谢谢,我在它的项目地址中找到很多相关项目 https://github.com/ariya/phantomjs/wiki/Related-Projects

参与回复
登录后即可参与回复。登录