- Python 100%
Footer hints now drop low-priority keys when space is tight instead of being cut off mid-word, and the right-hand status no longer leaves a dangling separator when nothing is downloading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| docs | ||
| .gitignore | ||
| iaf | ||
| LICENSE | ||
| README.md | ||
iaf
Fast terminal search and download for the Internet Archive. Find obscure music, old game ROMs, disc images, and other files by type, then download them right from a scrollable browser.
- Filters by file type: plain extensions (
flac,iso) or shortcuts likesnes,lossless,disc - Interactive browser: scroll, filter as you type, mark files, press Enter to download
- Parallel and resumable: concurrent downloads, MD5 verification, and partial files that resume when you re-run
- No dependencies: one Python file using only the standard library
- Local cache: repeat searches come back almost instantly
Install
You need Python 3.9 or newer (developed on 3.14) on Linux or macOS. On Windows, use WSL.
git clone https://git.enjoying.yachts/orca/iaf.git
ln -s "$PWD/iaf/iaf" ~/.local/bin/iaf # any directory on your PATH works
Usage
iaf "chrono trigger" -t snes -z # SNES ROMs, including zipped ones
iaf "boards of canada" -m audio -t lossless # narrow to a mediatype and file type
iaf "grateful dead" -c etree --year 1977 -t flac
iaf files snesromsetcompleate -t snes -z # browse one item
The browser opens whenever you run iaf in a terminal:
| Key | Action |
|---|---|
↑ ↓ / j k |
Move (PgUp/PgDn, g/G jump to the top or bottom) |
Enter |
Download the file (or all marked files). On an item, expand or collapse it |
→ ← |
Expand or collapse an item |
Space |
Mark a file. On an item, mark all its files |
a |
Mark or unmark everything visible |
d |
Download the marked files, or the whole item |
/ |
Filter by name (Esc clears) |
o |
Open the item's page in your web browser |
n |
Load the next page of results |
? |
Show help |
q |
Quit (asks first if downloads are still running) |
Downloads keep running while you browse. If you quit partway through, iaf keeps the partial files and prints the command that resumes them.
Scripting
Use -P for a plain numbered list and iaf get to download from it. Output that's piped or uses --json is always plain.
iaf "chrono trigger" -t snes -z -P
iaf get 1 3-5 -o ~/roms # numbers from the last listing
iaf get <identifier>/<file> # or an identifier, id/path, or archive.org URL
iaf get 2 --urls | mpv --playlist=-
Options
| Flag | Meaning |
|---|---|
-t TYPES |
Extensions or shortcuts, comma-separated |
-z |
Also match .zip/.7z (most ROM sets are compressed) |
-g REGEX |
The filename must match this (case-insensitive) |
-O |
Originals only (skip copies archive.org generated itself) |
--min / --max |
File size limits, e.g. --max 700M |
-m / -c / --year |
Mediatype, collection, year or range |
-s |
Sort: relevance, downloads, new, old, title |
-o DIR / -j N |
Download folder and number of parallel downloads |
Run iaf --help to see everything.
Type shortcuts: audio, lossless, chiptune, tracker, midi, video, disc, archive, doc, image, nes, snes, gb, gba, n64, nds, genesis, sms, pce, atari, psx, dos, rom
Tips
- archive.org can't search filenames across the whole site, so
-tand-gonly check the items a search returns. For ROMs, find the big set item first, then filter inside it withiaf files <id>and/. - First searches with a file filter take a while because archive.org answers each item lookup slowly. Results appear as they arrive, and repeat searches come from the cache in
~/.cache/iaf.
Disclaimer
iaf only uses archive.org's public, anonymous APIs. You're responsible for respecting copyright and the archive's terms of use for anything you download.