webshot-factory:基于无头Chrome的Web截图

时间:2024-05-27 04:38:05
【文件属性】:

文件名称:webshot-factory:基于无头Chrome的Web截图

文件大小:300KB

文件格式:ZIP

更新时间:2024-05-27 04:38:05

screenshot chrome-headless webshot puppeteer TypeScript

网络快照工厂 基于无头Chrome的大规模屏幕截图。 基本概念 Webshot-factory创建了许多无头Chrome工作程序实例,这些实例以循环方式获取屏幕截图。 因此,可以水平缩放以提供良好的吞吐量。 包括调试状态页,以监视工作程序实例。 可用于批处理报告生成。 或总体上拍摄一些屏幕截图。 用打字稿写成(捆绑式)。 安装 npm i webshot-factory 用法 import * as shotFactory from 'webshot-factory' ; await shotFactory . init ( { // Number of worker threads (chrome instances) to run. // A shot is assigned to a worker in round robin. concurrenc


【文件预览】:
webshot-factory-master
----.travis.yml(72B)
----package.json(1KB)
----tslint.json(524B)
----test()
--------test-run.ts(318B)
----assets()
--------webshot-debug-page.png(286KB)
--------webshot-factory.png(27KB)
----package-lock.json(42KB)
----tsconfig.json(684B)
----.gitignore(18B)
----lib()
--------shot-worker.ts(5KB)
--------job-queue.ts(734B)
--------shot-pool.ts(2KB)
----README.md(3KB)
----index.ts(3KB)
----.vscode()
--------tasks.json(432B)

网友评论