From bf18672bee74459d62d6f4a2519f1988d1a5e3f7 Mon Sep 17 00:00:00 2001 From: Dasemu Date: Mon, 19 Oct 2026 03:39:56 +0200 Subject: [PATCH 1/3] chore: bootstrap Claude setup Add missing docs/ (architecture.md) and link it from CLAUDE.md's Architecture section, per the repo bootstrap standard. Co-Authored-By: Claude Sonnet 5 --- CLAUDE.md | 1 + docs/architecture.md | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 docs/architecture.md diff --git a/CLAUDE.md b/CLAUDE.md index 9dec3ce..b36709c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -14,6 +14,7 @@ Command-line tool that batch-downloads archives from Vimm's Lair vault pages, ex - `run.py`: scrapes each vault page for its download form, downloads the archive with a progress bar, extracts `.zip`/`.7z` into `finished/`, deletes the archive, and drops successfully processed lines from `links.txt`. - `generator.py`: writes a sequential range of vault URLs to `links.txt`. - `downloading/`, `finished/`: working directories; contents are gitignored, directories kept via `.gitkeep`. +- See [docs/architecture.md](docs/architecture.md) for the full data flow. ## Conventions - Single-file scripts, no package structure; keep it that way unless the tool grows. diff --git a/docs/architecture.md b/docs/architecture.md new file mode 100644 index 0000000..e653a6e --- /dev/null +++ b/docs/architecture.md @@ -0,0 +1,30 @@ +# Architecture + +VimmLoader is a pair of single-file scripts with no package structure. + +## `generator.py` + +Writes a sequential range of Vimm's Lair vault URLs (`https://vimm.net/vault/`) to `links.txt`, one per line. The `start`/`finish` range is edited directly in the file before running it. + +## `run.py` + +For each URL still in `links.txt`: + +1. Fetches the vault page and scrapes its download form (action URL and hidden fields) with BeautifulSoup. +2. Submits the form and streams the response archive into `downloading/`, rendering a `tqdm` progress bar. +3. Extracts the archive (`.zip` or `.7z`) into `finished/`. +4. Deletes the downloaded archive once extraction succeeds. +5. Removes the URL's line from `links.txt`. + +A URL that fails at any step is left in `links.txt`, which makes the file a resumable work queue: re-running `run.py` only retries what's left. + +Requests to vimm.net disable TLS verification (`verify=False`). This is intentional, existing behavior — see [LESSONS.md](../LESSONS.md) and the root `CLAUDE.md` before touching it. + +## Working directories + +- `downloading/`: archives in progress. Gitignored; kept via `.gitkeep`. +- `finished/`: extracted output. Gitignored; kept via `.gitkeep`. + +## Configuration + +Runtime config is via environment variables, read directly by `run.py` (no `.env` loading). See `.env.example` for the full list, currently just `VIMM_COOKIE` for pages that require a logged-in session. From 28996f921a9dd353eef038d8310f1d0ca005d6aa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 19 Oct 2026 01:42:15 +0000 Subject: [PATCH 2/3] chore(release): v0.1.1 [skip ci] --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 6e8bf73..17e51c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.1.1 From bf5dd4a39807c4f307cd9733926935c62f182d31 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 19 Oct 2026 01:44:49 +0000 Subject: [PATCH 3/3] chore(release): v0.1.2 [skip ci] --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 17e51c3..d917d3e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.1 +0.1.2