How to Be Notified of Openings for Classes with No Waitlist (for linux)
*Access to someone can write computer scripts is required
This script will check available seats on linked courses (by CRN), and if there are any spots left, outputs the CRN for the courses with available spots.
To use (instructions for Linux):
find the CRN you are interested in, and modify the CRN value in the script below (this example is for CSC 110 labs for this September). I haven't tested it for other terms, but it should work. My guess is put the YYYYMM of the beginning of the term in TERM in the script:
#!/bin/bash
TERM="202609"
CRN="10712"
URL="https://banner.uvic.ca/StudentRegistrationSsb/ssb/searchResults/fetchLinkedSections?term=${TERM}&courseReferenceNumber=${CRN}"
curl -qsSL "$URL" > /tmp/uvic.json 2>/dev/null
</tmp/uvic.json jq '.linkedData[][] | select(.seatsAvailable> 0) | .courseReferenceNumber'
rm /tmp/uvic.json
Save this as $HOME/bin/check-uvic, and make sure it can be executed:
chmod +x $HOME/bin/check-uvic
You will need curl and jq installed, they are easily available on all Linux distributions.
Add a crontab job: run and add the following line at the bottom, to run once an hour
0 * * * * $HOME/bin/check-uvic
If your system is set up properly for email, you will receive an email once there are available spots in this course.