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