Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rjeczalik/wayback
Client for Wayback Availability JSON API.
https://github.com/rjeczalik/wayback
Last synced: about 2 months ago
JSON representation
Client for Wayback Availability JSON API.
- Host: GitHub
- URL: https://github.com/rjeczalik/wayback
- Owner: rjeczalik
- License: mit
- Created: 2014-12-27T20:00:27.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-28T11:43:04.000Z (almost 10 years ago)
- Last Synced: 2024-05-01T23:45:29.214Z (8 months ago)
- Language: Go
- Homepage: https://archive.org/help/wayback_api.php
- Size: 164 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
wayback [![GoDoc](https://godoc.org/github.com/rjeczalik/wayback?status.svg)](https://godoc.org/github.com/rjeczalik/wayback) [![Build Status](https://img.shields.io/travis/rjeczalik/wayback/master.svg)](https://travis-ci.org/rjeczalik/wayback "linux_amd64") [![Build status](https://img.shields.io/appveyor/ci/rjeczalik/wayback.svg)](https://ci.appveyor.com/project/rjeczalik/wayback "windows_amd64")
=========Package wayback implements a client for Wayback Availability JSON API.
See its website for details: https://archive.org/help/wayback_api.php*Example usage*
```go
package mainimport (
"log""github.com/rjeczalik/wayback"
)func main() {
url, time, err := wayback.Available("github.com")
if err != nil {
log.Fatal(err)
}
log.Println(url, "captured at", time)
}
```## cmd/wayback [![GoDoc](https://godoc.org/github.com/rjeczalik/wayback/cmd/wayback?status.png)](https://godoc.org/github.com/rjeczalik/wayback/cmd/wayback)
*Installation*
```
~ $ go get -u github.com/rjeczalik/wayback/cmd/wayback
```*Documentation*
[godoc.org/github.com/rjeczalik/wayback/cmd/wayback](http://godoc.org/github.com/rjeczalik/wayback/cmd/wayback)
*Example usage*
```bash
~ $ wayback github.com
http://web.archive.org/web/20141226100456/https://github.com/ Fri Dec 26 10:04:56 2014
```
```bash
~ $ wayback -t 2010 github.com
http://web.archive.org/web/20100102002654/http://github.com/ Sat Jan 2 00:26:54 2010
```