Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Yuchen Pei (quasi@peister.org)'s status on Wednesday, 04-Dec-2024 18:09:43 JSTYuchen Pei @lxo
> I've read the docs at https://archive.org/developers/internetarchive/cli.html and installed the program from the Trisquel repo, but I can't see how to use it to find out what's available from that web page that I can't see.
Start by listing items in the collection
```
$ ia search 'collection:mit_press_open_access'
{"identifier": "mit_press_book_9780262255516"}
{"identifier": "mit_press_book_9780262255813"}
{"identifier": "mit_press_book_9780262255998"}
...
```
To inspect an item:
```
$ ia metadata mit_press_book_9780262255516 | jq .metadata
```
To list files of the item:
```
$ ia ls mit_press_book_9780262255516
__ia_thumb.jpg
mit_press_book_9780262255516.pdf
mit_press_book_9780262255516_archive.torrent
mit_press_book_9780262255516_chocr.html.gz
mit_press_book_9780262255516_djvu.txt
mit_press_book_9780262255516_djvu.xml
...
```
To download the pdf:
```
$ ia download mit_press_book_9780262255516 mit_press_book_9780262255516.pdf
```
Sounds like it wouldn't be hard to write an internet archive browser in emacs.
@textfiles