Skip to content

A command-line tool and Go package for wayback webpage to Telegra.ph

License

Notifications You must be signed in to change notification settings

wabarc/telegra.ph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

A Golang and Command-Line Interface to Telegra.ph

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.

Installation

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

Usage

Command-line

$ 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

Go package interfaces

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

License

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

About

A command-line tool and Go package for wayback webpage to Telegra.ph

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published