by Devin Yang

建立于: 8年前 ( 更新: 8年前 )

在这里我提供Mac上的运行方式
抓图: 会产出output.png
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless \
--screenshot https://www.google.com
列印PDF: 会产出output.pdf
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless \
--print-to-pdf https://www.google.com
以下列出可用参数:
说明 有用的参数
Screenshots --screenshot
Create PDFs --print-to-pdf
Dump the DOM --dump-dom
Window size --window-size=412,732

Tags:

Devin Yang

文章内容无法一一说明,如果您有什么不了解处,欢印提问哦:)

No Comment

Post your comment

需要登入才可留言!

类似文章


linux

Raspberry Pi 3 树莓派作业系统安装

这篇文章,分享使用MacOS上的内建命令,进行Raspberry Pi的作业系统安装。 在这个安装过程中关於dd命令,请小心指定您of的参数,即是write output到文件的位置, 指定错了,会毁掉自己的系统哦。

MacOS

在MacOS如何停用IPV6功能在特定的设备上

如何在自己的MacOS停用或激活IPV6,可以用networksetup -listallnetworkservices列出所有MacOS的网络设备,然后再运行停用命令。

docker laravel

闲聊D-Laravel的console命令

D-Laravel的console命令让我们快速的了解他运行了什么。如果使用docker-compose是怎么运行的呢? 我们来看看吧。