Skip to content

A command-line tool and Go package for wayback web pages to Ghostarchive

License

Notifications You must be signed in to change notification settings

wabarc/ghostarchive

Repository files navigation

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.

About

A command-line tool and Go package for wayback web pages to Ghostarchive

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks