This package is a command-line tool named ghostarchive
saving webpage to Ghostarchive, 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/ghostarchive
From gobinaries.com:
curl -sf https://gobinaries.com/wabarc/ghostarchive/cmd/ghostarchive | sh
From releases
$ ghostarchive https://example.com
Output:
version: 0.0.1
date: unknown
https://example.com => https://ghostarchive.org/archive/eb4i3
package main
package ga
import (
"fmt"
"github.com/wabarc/ghostarchive"
)
func main() {
wbrc := &ga.Archiver{}
saved, _ := wbrc.Wayback(args)
for orig, dest := range saved {
fmt.Println(orig, "=>", dest)
}
}
// Output:
// https://example.com => https://ghostarchive.org/archive/eb4i3
This software is released under the terms of the MIT. See the LICENSE file for details.