Wayback
wabarc/wayback
is a tool that supports running as a command-line tool and docker container, purpose to snapshot webpage to time capsules.
Prerequisites
- Golang
- Telegram bot
- Telegram channel (optional)
Installation
$ go get -u github.com/wabarc/wayback
Usage
- Running the command-line or Docker container.
- Start a chat with the bot and Send URL.
Command line
$ wayback -h
A CLI tool for wayback webpages.
Usage:
wayback [flags]
wayback [command]
Available Commands:
help Help about any command
telegram A CLI tool for wayback webpages on Telegram bot.
Flags:
-h, --help help for wayback
--host string IPFS daemon host. (default "127.0.0.1")
--port uint IPFS daemon port. (default 5001)
--tor Saving webpage use tor proxy.
Use "wayback [command] --help" for more information about a command.
$ wayback telegram -t YOUR-BOT-TOKEN
Publish message to your Telegram channel at the same time:
$ wayback telegram
A CLI tool for wayback webpages on Telegram bot.
Usage:
wayback telegram [flags]
Flags:
-c, --chatid string Channel ID. default: ""
-d, --debug Enable debug mode. default: false
-h, --help help for telegram
-t, --token string Telegram bot API Token, required.
$ wayback telegram -t YOUR-BOT-TOKEN -c YOUR-CHANNEL-USERNAME
Also can run with debug mode:
$ wayback telegram -t YOUR-BOT-TOKEN -d
Docker/Podman
$ docker pull wabarc/wayback
$ docker run -d wabarc/wayback telegram -t YOUR-BOT-TOKEN # without telegram channel
$ docker run -d wabarc/wayback telegram -t YOUR-BOT-TOKEN -c YOUR-CHANNEL-USERNAME # with telegram channel
TODO
Archive.org and Archive.today are currently supported, the next step mind support the followings platform:
Telegram bot
License
Permissive GPL 3.0 license, see the LICENSE file for details.