by Devin Yang

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

在这里我提供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

需要登入才可留言!

类似文章


Laravel, Packages,

什么样的包你必定装在所有你创建的Laravel应用进程上呢?

有什么样的包,你肯定会装在你的Laravel应用进程上呢? 这里有四星的包,几乎大家都会装, 点进来看看,我怎么说,我的实际使用使用心得分享...

python

python fastapi速查笔记

简单日志运行fastapi的安装步骤

php

用PHP透过IMAP清空HiBox的收件夹

收信的信箱爆了,所有的信都不想要,用PHP清空收件夹。 以下是我抄来的范例进程,做了小调整。