Home Reference Source
import RemoteChromeWARCGenerator from 'node-warc/lib/writers/remoteChrome.js'
public class | source

RemoteChromeWARCGenerator

Extends:

WARCWriterBase → RemoteChromeWARCGenerator

WARC Generator for use with chrome-remote-interface

See:

Method Summary

Public Methods
public

async generateWARC(capturer: RemoteChromeRequestCapturer, network: Object, genOpts: WARCGenOpts): Promise<void>

public

async generateWarcEntry(nreq: CDPRequestInfo, network: Object): Promise<void>

Generate a WARC record

Public Methods

public async generateWARC(capturer: RemoteChromeRequestCapturer, network: Object, genOpts: WARCGenOpts): Promise<void> source

Params:

NameTypeAttributeDescription
capturer RemoteChromeRequestCapturer

The RemoteChrome request capturer that contains requests to be serialized to the WARC

network Object

The chrome-remote-interface Network object

genOpts WARCGenOpts

Options for generating the WARC and optionally generating WARC info, WARC info + Webrecorder Player bookmark list, metadata records

Return:

Promise<void>

A Promise that resolves when WARC generation is complete

public async generateWarcEntry(nreq: CDPRequestInfo, network: Object): Promise<void> source

Generate a WARC record

Params:

NameTypeAttributeDescription
nreq CDPRequestInfo

The captured HTTP info

network Object

The chrome-remote-interface Network object

Return:

Promise<void>