gemarchiver

command module
v0.0.0-...-39fc895 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2022 License: EUPL-1.2 Imports: 8 Imported by: 0

README

GemArchiver

WARNING: This program is in early alpha development

A recursive gemini capsule archiver / downloader written in Go. Traverses all links within a Gemini capsule to download every page, and save to a local folder.

Usage

$ go build .
$ ./gemarchiver gemini://yourdomain.tld

The following options are supported:

  • -h shows help and exits.
  • -exclude (string) a regular expression to exclude folders or files from being archived.
Examples

Archive gemini.circumlunar.space (the reference capsule) excluding the users and docs subdirectories (at the root):

$ ./gemarchiver gemini://gemini.circumlunar.space -exclude "/[users|docs]"

Archive costas.dev (my capsule) completely:

$ ./gemarchiver gemini://costas.dev

To-do

  • Clean source code: make it readable and not-messy
  • Allow directory exclusion: Say you don't want the /users/ subdirectory in gemini.circumlunar.space
  • Error handling: Silent logs now either crash the prorgam or are silently ignored

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL