在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):wabarc/wayback开源软件地址(OpenSource Url):https://github.com/wabarc/wayback开源编程语言(OpenSource Language):Go 89.1%开源软件介绍(OpenSource Introduction):WaybackWayback is a tool that supports running as a command-line tool and docker container, purpose to snapshot webpage to time capsules. Supported Golang version: See .github/workflows/testing.yml Features
InstallationThe simplest, cross-platform way is to download from GitHub Releases and place the executable file in your PATH. From source: go get -u github.com/wabarc/wayback/cmd/wayback From GitHub Releases: curl -fsSL https://github.com/wabarc/wayback/raw/main/install.sh | sh or via Bina: curl -fsSL https://bina.egoist.sh/wabarc/wayback | sh Using Snapcraft (on GNU/Linux) sudo snap install wayback Via APT: curl -s https://apt.wabarc.eu.org/KEY.gpg | sudo apt-key add -
sudo echo "deb https://apt.wabarc.eu.org/ /" > /etc/apt/sources.list.d/wayback.list
sudo apt update
sudo apt install wayback Via RPM: sudo cat > /etc/yum.repos.d/wayback.repo<< EOF
[wayback]
name=Wayback Repository
baseurl=https://rpm.wabarc.eu.org/x86_64/
enabled=1
gpgcheck=0
EOF
sudo yum install -y wayback Via Homebrew: brew tap wabarc/wayback
brew install wayback UsageCommand line$ wayback -h
A command-line tool and daemon service for archiving webpages.
Usage:
wayback [flags]
Examples:
wayback https://www.wikipedia.org
wayback https://www.fsf.org https://www.eff.org
wayback --ia https://www.fsf.org
wayback --ia --is -d telegram -t your-telegram-bot-token
WAYBACK_SLOT=pinata WAYBACK_APIKEY=YOUR-PINATA-APIKEY \
WAYBACK_SECRET=YOUR-PINATA-SECRET wayback --ip https://www.fsf.org
Flags:
--chatid string Telegram channel id
-c, --config string Configuration file path, defaults: ./wayback.conf, ~/wayback.conf, /etc/wayback.conf
-d, --daemon strings Run as daemon service, supported services are telegram, web, mastodon, twitter, discord, slack, irc
--debug Enable debug mode (default mode is false)
-h, --help help for wayback
--ia Wayback webpages to Internet Archive
--info Show application information
--ip Wayback webpages to IPFS
--ipfs-host string IPFS daemon host, do not require, unless enable ipfs (default "127.0.0.1")
-m, --ipfs-mode string IPFS mode (default "pinner")
-p, --ipfs-port uint IPFS daemon port (default 5001)
--is Wayback webpages to Archive Today
--ph Wayback webpages to Telegraph
--print Show application configurations
-t, --token string Telegram Bot API Token
--tor Snapshot webpage via Tor anonymity network
--tor-key string The private key for Tor Hidden Service
-v, --version version for wayback ExamplesWayback one or more url to Internet Archive and archive.today: wayback https://www.wikipedia.org
wayback https://www.fsf.org https://www.eff.org Wayback url to Internet Archive or archive.today or IPFS: // Internet Archive
$ wayback --ia https://www.fsf.org
// archive.today
$ wayback --is https://www.fsf.org
// IPFS
$ wayback --ip https://www.fsf.org For using IPFS, also can specify a pinning service: $ export WAYBACK_SLOT=pinata
$ export WAYBACK_APIKEY=YOUR-PINATA-APIKEY
$ export WAYBACK_SECRET=YOUR-PINATA-SECRET
$ wayback --ip https://www.fsf.org
// or
$ WAYBACK_SLOT=pinata WAYBACK_APIKEY=YOUR-PINATA-APIKEY \
$ WAYBACK_SECRET=YOUR-PINATA-SECRET wayback --ip https://www.fsf.org More details about pinning service. With telegram bot: wayback --ia --is --ip -d telegram -t your-telegram-bot-token Publish message to your Telegram channel at the same time: wayback --ia --is --ip -d telegram -t your-telegram-bot-token --chatid your-telegram-channel-name Also can run with debug mode: wayback -d telegram -t YOUR-BOT-TOKEN --debug Both serve on Telegram and Tor hidden service: wayback -d telegram -t YOUT-BOT-TOKEN -d web Configuration ParametersBy default,
Use the You can also specify configuration options either via command flags or via environment variables, an overview of all options below.
If both of the definition file and environment variables are specified, they are all will be read and apply, and preferred from the environment variable for the same item. Prints the resulting options of the targets with Docker/Podmandocker pull wabarc/wayback
docker run -d wabarc/wayback wayback -d telegram -t YOUR-BOT-TOKEN # without telegram channel
docker run -d wabarc/wayback wayback -d telegram -t YOUR-BOT-TOKEN -c YOUR-CHANNEL-USERNAME # with telegram channel 1-Click DeployDeploymentTODOArchive.org and Archive.today are currently supported, the next step mind support the followings platform: ServicesTelegram botMastodon botBot friendly instance: F.A.QQ: How to keep the Tor hidden service hostname? A: For the first time to run the
ContributingWe encourage all contributions to this repository! Open an issue! Or open a Pull Request! If you're interested in contributing to Note: All interaction here should conform to the Code of Conduct. LicenseThis software is released under the terms of the GNU General Public License v3.0. See the LICENSE file for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论