Auto reporter/renewer for Spydus library services
Go to file
Mike Jagdis 5659964042 Keep retrying the URL open until it works
Sometimes the early morning runs return temporary failures in name
resolution for unknown reasons. Other times we may not even have network
connectivity. Whatever the cause, if we have been told to run we need to
keep trying because if we just give in we might miss a needed renewal
(or a report of a reservation) and start incurring late fees.

Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk>
2023-09-09 10:30:45 +01:00
__init__.py Initial version 2021-08-10 14:31:14 +01:00
crontab Fix crontab and add a version with debug logging to /tmp 2022-01-04 21:46:30 +00:00
crontab-debug Fix crontab and add a version with debug logging to /tmp 2022-01-04 21:46:30 +00:00
LICENSE Initial version 2022-01-04 21:48:07 +00:00
Makefile Initial version 2021-08-10 14:31:14 +01:00
README.md Correct typo in README.md 2023-06-04 09:52:46 +01:00
spydus Keep retrying the URL open until it works 2023-09-09 10:30:45 +01:00
spydus.conf Clean up example configs 2021-08-27 21:55:35 +01:00

Spydus Library Updater

Manages the status of books borrowed from libraries with spydus based websites.

Requires python3, mechanize and BeautifulSoup 4

Run with no arguments for usage.

"spydus xxx.conf" runs using the specified conf file. See the included spydus.conf example. "url" specifies the website URL to talk to. "id", "pin" and "email" in each section say what id to login as and where to send the results. By default spydus will attempt to renew loans which have reached their renewal date and send a report of current loans sent to the given email address.

To received a report only (no renewals attempted) use:

spydus --report xxx.conf

To forcibly renew everything regardless of renewal date use:

spydus --renew xxx.conf

See the example crontabs for how I run it.

There is NO support! Sometimes it breaks. Sometimes the website changes. Tough.