This commit is contained in:
2026-04-13 11:25:40 +09:00
commit 8a24c92395
67 changed files with 276281 additions and 0 deletions

37
run-bizmax.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ENV_FILE="${BIZMAX_ENV_FILE:-$SCRIPT_DIR/.env}"
TARGET="${1:-all}"
if [[ -f "$ENV_FILE" ]]; then
set -a
# shellcheck disable=SC1090
source "$ENV_FILE"
set +a
fi
case "$TARGET" in
hyun)
BASE_URLS="https://hyun.bizmax.net"
;;
hyun2)
BASE_URLS="https://hyun2.bizmax.net"
;;
all)
BASE_URLS="https://hyun.bizmax.net,https://hyun2.bizmax.net"
;;
*)
echo "Usage: $0 [hyun|hyun2|all]" >&2
exit 1
;;
esac
if [[ -z "${BIZMAX_ID:-}" || -z "${BIZMAX_PASSWORD:-}" ]]; then
echo "Set BIZMAX_ID and BIZMAX_PASSWORD before running." >&2
exit 1
fi
BIZMAX_BASE_URLS="$BASE_URLS" \
node --experimental-strip-types "$SCRIPT_DIR/bizmax-download-excel.ts"