/*
warc-extract -- WARC files data extractor
-Copyright (C) 2021-2022 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2021-2023 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
func main() {
uri := flag.String("uri", "", "URI to extract, if specified")
hdr := flag.Bool("hdr", false, "Also extract WARC's header")
- idx := flag.Bool("idx", false, "Save WARC indexes")
+ idx := flag.Bool("idx", false, "Save WARC indices")
recompress := flag.Bool("for-enzstd", false, "Output for enzstd utility")
flag.Parse()
log.SetFlags(log.Lshortfile)
}
log.Println("added", p, len(warc.WARCs[p]), "URIs")
if *idx {
- if err := warc.SaveIndexes(); err != nil {
+ if err := warc.SaveIndices(); err != nil {
log.Fatalln(err)
}
}