archive.is

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

README

A Golang and Command-Line Interface to Archive.is

This package installs a command-line tool named archive.is for using Archive.is from the command-line. It also installs the Golang package for programatic save page to archive.is. Please report all bugs and issues on Github.

Installation

$ go install github.com/wayback-to/archive.is

Basic Usage

Command-line
$ archive.is https://www.google.com https://www.bbc.com

Output:
version: 0.0.1
date: unknown

7.65s  114653 https://www.google.com
3.95s  835910 https://www.bbc.com
11.60s elapsed

https://archive.li/8h5tP
https://archive.li/3g5eo
Go package interfaces
package main

import (
	"fmt"
	"github.com/wayback-to/archive.is/pkg"
	"strings"
)

func main() {
	links := []string{"https://www.google.com", "https://www.bbc.com"}
	r := ia.Wayback(links)
	fmt.Println(strings.Join(r, "\n"))
}

// Output:
// 11.52s  114653 https://www.google.com
// 6.43s   835910 https://www.bbc.com
// 17.95s elapsed
//
// https://archive.vn/8h5tP
// https://archive.vn/3g5eo
License

Permissive GPL 3.0 license, see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL