Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 1.31 KB

README.md

File metadata and controls

62 lines (41 loc) · 1.31 KB

A Golang and Command-Line Interface to Ghostarchive

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.

Installation

From source:

go get github.com/wabarc/ghostarchive

From gobinaries.com:

curl -sf https://gobinaries.com/wabarc/ghostarchive/cmd/ghostarchive | sh

From releases

Usage

Command-line

$ ghostarchive https://example.com

Output:
version: 0.0.1
date: unknown

https://example.com => https://ghostarchive.org/archive/eb4i3

Go package interfaces

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

License

This software is released under the terms of the MIT. See the LICENSE file for details.