Skip to content

A command-line tool and Go package for wayback web pages to archive.org

License

Notifications You must be signed in to change notification settings

wabarc/archive.org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

A Golang and Command-Line Interface to Archive.org

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.

Installation

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

Usage

Command-line

$ 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

Go package interfaces

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

License

This software is released under the terms of the GNU General Public License v3.0. See the LICENSE file for details.