Add gemget script that downloads Gemini pages

This commit is contained in:
2025-02-26 10:35:44 +02:00
parent ebf59c50b8
commit e626aabecb
2 changed files with 63 additions and 0 deletions

16
gemget.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/env bash
set -eu
set -o pipefail
# Max response size 10MiB
LOG_LEVEL=debug \
PRINT_WORKER_STATUS=false \
DRY_RUN=false \
NUM_OF_WORKERS=1 \
WORKER_BATCH_SIZE=1 \
BLACKLIST_PATH="$(pwd)/blacklist.txt" \
MAX_RESPONSE_SIZE=10485760 \
RESPONSE_TIMEOUT=10 \
PANIC_ON_UNEXPECTED_ERROR=true \
go run ./bin/gemget/main.go "$@"