This package is a command-line tool named archive.org
saving webpage to Internet Archive, it also supports imports as a Golang package for a programmatic. Please report all bugs and issues on Github.
From source:
go get github.com/wabarc/archive.org
From gobinaries.com:
curl -sf https://gobinaries.com/wabarc/archive.org/cmd/archive.org | sh
From releases
$ archive.org https://www.google.com https://www.bbc.com
Output:
version: 0.0.1
date: unknown
https://www.bbc.com => https://web.archive.org/web/20200613094506/https://www.bbc.com
https://www.google.com => https://web.archive.org/web/20200613094506/https://www.google.com
package main
package ia
import (
"fmt"
"github.com/wabarc/archive.org/pkg"
)
func main() {
wbrc := &ia.Archiver{}
saved, _ := wbrc.Wayback(args)
for orig, dest := range saved {
fmt.Println(orig, "=>", dest)
}
}
// Output:
// https://www.bbc.com => https://web.archive.org/web/20200613094640/https://www.bbc.com
// https://www.google.com => https://web.archive.org/web/20200613094640/https://www.google.com
This software is released under the terms of the GNU General Public License v3.0. See the LICENSE file for details.