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

需要登入才可留言!

类似文章


php

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

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

openapi,ai,laravel

在Laravel上写OpenAI测试API

最近好像大家都在讲OpenAI,如果您也想玩,可以在Laravel的API写个简易的API测试哦。因为可以用curl调用,所以透过guzzle就能调用了。如果您登录了openai的网站,可在此处看到官方的教程说明https://beta.openai.com/docs/quickstart/build-your-applicationAPI的KEY的申请,就在这页的下方就有按钮了+ Create new secret key

EBS Volume, mount, ubuntu

创建可供使用的 Amazon EBS 卷宗

这个篇文章完整日志我挂格式化及挂载EBS卷宗的完整过程。 内文有完整步骤及原文参考连结。