ahloiscreamo/ia-search
À propos
ia-search | internet archive file browser
Outils de développementProgression mesurée des étoiles
- in 24h
- +1
- in 7 days
- +3
- in 15 days
- +3
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
ia-search
An interactive terminal browser and downloader for the Internet Archive. Built with fzf and the ia tool to search, play, and download media without leaving the shell.
Features
Interactive Menus
Use fzf to navigate collections and search results with pagination.
Favorites
Save collections and search queries, including filters.
Search Options
- History & Examples — The prompt displays your recent queries and useful example searches.
- Exact Search — Press
Ctrl+Eto search exactly what you typed, ignoring history suggestions. - Help Guide — The built-in
--helpcommand lists all searchable fields likemediatypeandcreator. - Sub-Searching — Narrow down large collections or results without reloading the whole list.
Media & Previews
- Previews — See an item's collections and file sizes in the side pane.
- Subtitle Support — Automatically finds and loads matching
.srt,.ass, or.vttfiles inmpv. - Integrated Players — Opens video and audio in
mpv, images innsxiv/imv, PDFs, EPUBs, and CBZ comics inzathura, and text files invim. - Gallery Mode — Open all images in an item at once in your image viewer with
[Open all images].
Functional Tools
- Pagination — Results load in pages to keep the interface fast and responsive.
- Caching — Top collections are cached for seven days. Search results and collection pages stay cached until refreshed.
- Downloads — Pull videos with
yt-dlpor any specific file usingcurl. - Customizable — Change your default players and icons at the top of the script.
Installation
Install the dependencies listed below.
Copy the script to a directory in your
$PATH.cp ia-search ~/.local/bin/Make it executable.
chmod +x ~/.local/bin/ia-search
Usage
Run the script.
ia-search
Check the search syntax guide.
ia-search --help
Browsing
Pick a collection from the main menu or select [Search all collections] to start a query. The search prompt saves your history so you can quickly re-run previous searches or pick from the examples.
The search query and page number appear above the results and side preview. Open an item and choose Browse collections to jump to one of its collections. The picker marks the primary collection.
Favorites
Press Ctrl+B on a collection to favorite it. Use Save this search to keep the full query, including filters like collection:magazine_rack AND language:jpn. Add magazine_rack to Favorites saves the whole collection.
Open Favorites from the main menu. A filled star marks a saved search or collection in the results menu. To move your favorites to another device, copy ~/.config/ia-search/collections.list (under $XDG_CONFIG_HOME if set).
Keybindings
| Key | Action |
|---|---|
Enter |
Select highlighted item |
Esc |
Go back / exit |
Ctrl+E |
Submit exact typed query (search prompt only) |
Ctrl+B |
Toggle a collection favorite or remove an entry from the Favorites menu |
Search Guide
Queries use the standard field:value syntax. Combine terms with AND, OR, or NOT.
Common Fields
| Field | Description | Example |
|---|---|---|
mediatype |
Content category | mediatype:movies |
title |
Work title | title:"Floating weeds" |
creator |
Author/Director | creator:"yasujiro ozu" |
uploader |
Account that uploaded the item | uploader:someuser |
subject |
Keywords/Themes | subject:"japanese cinema" |
collection |
Specific collection | collection:vhsmovies |
date |
Publication year | date:[1980 TO 1989] |
language |
ISO 639-2 code | language:jpn |
identifier |
Unique item ID | identifier:openlibrary |
format |
File format | format:pdf |
Mediatypes
| Mediatype | Content |
|---|---|
texts |
Books/Documents |
audio |
Music/Podcasts |
movies |
Video/Films |
software |
Games/Apps |
image |
Photos/Art |
data |
Datasets |
web |
Web archives |
Language Codes (ISO 639-2)
| Language | Code |
|---|---|
| English | eng |
| Japanese | jpn |
| French | fre |
| German | ger |
| Chinese | zho |
| Spanish | spa |
| Korean | kor |
Examples
Finding Movies by Director
mediatype:movies AND creator:"yasujiro ozu"
mediatype:movies AND creator:"wong kar wai"
mediatype:movies AND creator:"edward yang"
Finding by Title
title:irezumi
title:"typhoon club"
mediatype:movies AND title:"blind beast"
Finding Movies by Language
mediatype:movies AND language:jpn
mediatype:movies AND language:chi
Finding Japanese Magazines
mediatype:texts AND language:jpn AND subject:magazine
collection:magazine_rack AND language:jpn
Finding Image Galleries
mediatype:image AND subject:magazine
subject:gravure AND mediatype:image
Finding by Collection
collection:anime_miscellaneous
collection:pub_playboy
collection:magazine_rack
Finding Audio
mediatype:audio AND subject:album
mediatype:audio AND language:jpn
Finding Texts
mediatype:texts AND subject:linux
mediatype:texts AND language:jpn
Finding by Uploader
uploader:someuser
Dependencies
Core
ia(Internet Archive CLI) — Metadata and searching.fzf— Interactive menus and filtering.jq— JSON parsing.curl/pv— Downloads and progress bars, with Unicode blocks on supported versions ofpv.python3— URL encoding.flock(util-linux) — Favorites file locking.
Media Viewers
mpv— Video and audio playback.nsxiv/imv— Image viewing withnsxivon X11 orimvon Wayland.zathura— PDF, EPUB, and CBZ reading. For CBZ, install thezathura-cbplugin.vim— Text file viewing.yt-dlp— Video downloads.
Configuration
You can change the default apps by editing the variables at the top of the script.
VIDEO_PLAYER="mpv"
AUDIO_PLAYER="mpv"
IMAGE_VIEWER="nsxiv" # X11 — use "imv" for Wayland
PDF_VIEWER="zathura"
EPUB_VIEWER="zathura"
CBZ_VIEWER="zathura"
TEXT_VIEWER="vim"
VIDEO_DOWNLOADER="yt-dlp"
To read a CBZ comic, select the .cbz file and choose Open. The script downloads a temporary copy and removes it when the viewer closes.
To use a different CBZ viewer, set CBZ_VIEWER to its executable name or path. If it needs command-line flags, point CBZ_VIEWER to a wrapper script.
To use emoji instead of Nerd Font icons, set the following variable.
USE_NERD_ICONS="false"
[!NOTE] The default icons require a Nerd Font to display correctly. If you see missing characters, either install a Nerd Font or set
USE_NERD_ICONS="false".
Notes
- Video loading slow? This is normal — playback speed depends on Internet Archive's server speed, not your connection.
- Cache files live in
~/.cache/ia-search/. Use[Refresh page]in results or[Refresh cache]in the main menu to reload.
Explorer des projets similaires
Chargement…