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

需要登入才可留言!

类似文章


docker

D-Laravel上.env及docker-compsoe小教室

本文介绍,当我们使用D-Laravel的.env加载多个yml档时,为何docker-compose ps官方命令无法列出所有使用中的服务。 但在D-Laravel上的./console ps确能正常显示,那官方的docker-compose命令因如何使用才能有相同的效果呢?

cwebp,bash

我如何用bash优化网站图档,透过cwebp转图

我的网站中有大量背景图在同一个页面中,下载下来太大罗,需要瘦身,这cwebp工具不错。在ubunut的环境apt install webp就可以安装罗。

git

用git logt命令快速列出自己或别人的commit

这里有两个命令,可以快速列出自己或别人所有的commit