Home Posts


Automating library book renewals

I probably should be grateful that Berkeley lets you telnet into a machine and renew your library books. Unfortunately, I couldn’t stand to waste 45 seconds every two weeks doing this manually, so I instead spent 20 minutes writing a small script [txt] that renews books checked out from the UC Berkeley library. It’s easy to use: just plugin your CalNet ID and pin (birthday) and you’re all set. It probably needs a recent Python with the pexpect library.

In about a year, I’ll have saved time on this endeavor.

Thomas Kho - 19 Mar 2007



The opinions expressed on this site are mine and do not necessarily represent those of my employer.