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

需要登入才可留言!

类似文章


gitlab,reset password

重设gitlab密码

用docker建的gitlab太久没用,忘记密码了,如何重设呢。 我们应该能透过下方命令,进入到gitlab容器内...

关於TTFB

TTFB(Time To First Byte): 浏览器正在等待响应的第一个位组。 TTFB代表第一个位组的时间。 这个时间包括1次往返延迟和伺服器准备响应的时间。

python

用python运行系统命令

我如何用Pyhton运行系统命令,这里有个简单的范例