Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

iyaki/web-archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

28 Commits

Repository files navigation

web-archiver

A command-line utility to save web pages from a sitemap to the Web Archive (archive.org).

Features

  • Parse standard XML sitemaps
  • Save pages to Web Archive with full captures (screenshots, outlinks)
  • Filter pages by last modification date
  • Concurrent processing for faster archiving

Installation

From Source

Requires Go 1.22 or later:

go install github.com/iyaki/web-archiver/v2@latest

From Releases

Download pre-built binaries from the Releases page.

Configuration

This program requires Web Archive API credentials as environment variables:

  • WAYBACK_S3_ACCESS_KEY - Your Web Archive S3 access key
  • WAYBACK_S3_SECRET_KEY - Your Web Archive S3 secret key

Get your API keys from Web Archive S3-Like API.

Usage

web-archiver <sitemap_url> [<date>]

Arguments

  • sitemap_url (required): URL to the sitemap XML file
  • date (optional): Filter date in ISO format (YYYY-MM-DD). Only URLs with lastMod newer than this date will be saved.

Examples

Save all URLs from a sitemap:

web-archiver https://iyaki.ar/sitemap.xml

Save only URLs modified since a specific date:

web-archiver https://iyaki.ar/sitemap.xml 2024年05月01日

About

Lightweight CLI tool to save websites on the Internet Archive

Resources

Stars

Watchers

Forks

Contributors

AltStyle によって変換されたページ (->オリジナル) /