The Internet Archive Python CLI tool

Software

If you’re used to the older FTP method of uploading material to the Internet Archive, you owe it to yourself and your password to try out their excellent Python command line tools.

To install the package on FreeBSD:

# pkg install python3 py36-internetarchive

Or using pip on FreeBSD to install:

# pkg install python3 py36-pip
% pip install --user internetarchive

Or on macOS with Homebrew:

$ brew install python
$ pip install internetarchive

Let’s confirm it worked:

$ ia --help | head 1
==> A command line interface to Archive.org.

Noice! Now we can configure:

$ ia configure
==> Enter your Archive.org credentials below to configure 'ia'.
==> Email address: [..]
==> Password: [..]
==> Config saved to: /home/rubenerd/.config/ia.ini

Now you can upload, download, delete, search, view tasks, copy/move, and more. The syntax is simple:

$ ia <action> [options] <identifier>

More info is available with ia --help. If you fudge an argument or file path, it prints out inline instructions to help you out.

Author bio and support

Me!

Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

You can leave me a comment by contacting me, and I might publish your thoughts. Please read the FAQs first though.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!