Reply to comment
A book auto-renewer for UNI's library
Posted October 8th, 2009 at 9:20 pmA while ago I wrote an auto renewer for UNI's library. I thought I would share that code in this post. It's not the best code I've ever written, but it works, and it's much better then trying to remember to do it manually.
So, without further ado, get it.
It's pretty simple to run, basically you just do
ruby rod_library_renewer.rb last_name UNI_id_including_000_in_the_front
The default action as demo'd above is to renew all books. I set this on up on my system using cron to run every day.
This will almost certainly fail if someone reserves one of the books you have..but I don't know how the web interface reports this, so my script doesn't catch it. So. Be aware!
Recent comments
1 sec ago
1 min ago
8 min 52 sec ago
13 min 14 sec ago
14 min 43 sec ago
15 min 52 sec ago
30 min 30 sec ago
31 min 6 sec ago
37 min 20 sec ago
41 min 36 sec ago