如何用nodejs去做网页截图呢?
发布于 11 年前 作者 dgunzi 16801 次浏览 最后一次编辑是 8 年前

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

3 回复

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

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

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

回到顶部