mirror of
https://github.com/Dasemu/VimmLoader.git
synced 2026-11-26 15:26:06 +00:00
Merge pull request 'chore: bootstrap Claude setup' (#2) from claude/version-bump-git-failure-f4b15e into development
Reviewed-on: #2
This commit is contained in:
commit
53809a0994
2 files changed
+31
No files matched your search
@@ -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`.
|
- `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`.
|
- `generator.py`: writes a sequential range of vault URLs to `links.txt`.
|
||||||
- `downloading/`, `finished/`: working directories; contents are gitignored, directories kept via `.gitkeep`.
|
- `downloading/`, `finished/`: working directories; contents are gitignored, directories kept via `.gitkeep`.
|
||||||
|
- See [docs/architecture.md](docs/architecture.md) for the full data flow.
|
||||||
|
|
||||||
## Conventions
|
## Conventions
|
||||||
- Single-file scripts, no package structure; keep it that way unless the tool grows.
|
- Single-file scripts, no package structure; keep it that way unless the tool grows.
|
||||||
|
|||||||
@@ -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/<id>`) 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.
|
||||||
Reference in new issue
Block a user