This package is a command-line tool named telegra.ph
convert webpage to telegra.ph, it also supports imports as a Golang package for a programmatic. Please report all bugs and issues on Github.
From source:
$ go get github.com/wabarc/telegra.ph
From gobinaries.com:
$ curl -sf https://gobinaries.com/wabarc/telegra.ph/cmd/telegra.ph | sh
From releases
$ telegra.ph https://www.eff.org/ https://www.fsf.org/
https://www.eff.org/ => https://telegra.ph/Electronic-Frontier-Foundation--Defending-your-rights-in-the-digital-world-01-27-5
https://www.fsf.org/ => https://telegra.ph/Front-Page--Free-Software-Foundation--working-together-for-free-software-01-27-2
package main
import (
"fmt"
"github.com/wabarc/telegra.ph"
)
func main() {
links := []string{"https://www.eff.org/", "https://www.fsf.org/"}
wbrc := &ph.Archiver{}
published, _ := wbrc.Wayback(links)
for orig, dest := range published {
fmt.Println(orig, "=>", dest)
}
}
// Output:
// https://www.eff.org/ => https://telegra.ph/Electronic-Frontier-Foundation--Defending-your-rights-in-the-digital-world-01-27-5
// https://www.fsf.org/ => https://telegra.ph/Front-Page--Free-Software-Foundation--working-together-for-free-software-01-27-2
This software is released under the terms of the GNU General Public License v3.0. See the LICENSE file for details.