mirror of
https://github.com/Dasemu/VimmLoader.git
synced 2026-11-26 07:16:07 +00:00
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 <noreply@anthropic.com>
1.7 KiB
1.7 KiB
VimmLoader
Overview
Command-line tool that batch-downloads archives from Vimm's Lair vault pages, extracts them, and tracks progress through links.txt as a resumable queue.
Commands
- Install deps:
pip install -r requirements.txt - Generate a range of vault URLs:
python3 generator.py(editstart/finishin the file first) - Run the downloader:
python3 run.py - Lint: none configured
- Tests: none configured —
python -m py_compile *.pyis the only automated check (syntax only)
Architecture
run.py: scrapes each vault page for its download form, downloads the archive with a progress bar, extracts.zip/.7zintofinished/, deletes the archive, and drops successfully processed lines fromlinks.txt.generator.py: writes a sequential range of vault URLs tolinks.txt.downloading/,finished/: working directories; contents are gitignored, directories kept via.gitkeep.- See docs/architecture.md for the full data flow.
Conventions
- Single-file scripts, no package structure; keep it that way unless the tool grows.
- Runtime config via environment variables (e.g.
VIMM_COOKIE), never hardcoded.
Workflow quirks
links.txtis the resumable work queue: failed/unresolved URLs stay in the file, successful ones are removed.- TLS verification is disabled (
verify=False) in requests to vimm.net; this is existing intentional behavior, not a bug to silently fix.
Deployment
- Not a deployed service; run locally/ad hoc as a CLI script.
Gotchas
- No linter or test suite exists yet; CI and the Stop hook only run a syntax check (
py_compile). VIMM_COOKIEmay be required for some downloads (403/redirect) — see README.