warc_write_warcinfo: Write a 'warcinfo' record to a WARC File

Description Usage Arguments Value

Description

Write a warcinfo record to a WARC File

Usage

1
2
3
warc_write_warcinfo(wobj, warc_date = Sys.time(), warc_record_id = NULL,
  warc_info = list(software = sprintf("jwatr %s", packageVersion("jwatr")),
  format = "WARC File Format 1.0"))

Arguments

wobj

a WARC file object created with warc_file

warc_date

A supplied POSIXct timestamp to use to timestamp the WARC file. Current time will be used if none supplied.

warc_record_id

A unique identifier for the WARC record. If not provided one will be generated with UUIDgenerate.

warc_info

A named list with fields to store for the warcinfo record.

Value

The passed-in wobj (thus, allowing for pipe chaining)


hrbrmstr/jwatr documentation built on May 31, 2019, 1:15 p.m.