Just: `gem install bundler`, `bundle install` and `ruby parse_patriot_web.rb`
Requires nokogiri which may require actual packages as it's a native extension.
## Holding Pattern
Presently for this script we are in a holding pattern since they plan on changing the PatriotWeb backend to CAS April 15th. Should they choose to change the endpoints we hit to authenticated, we're pretty screwed, so there's no reason to flesh out a full service before then.
## Future Plans
In the future, this should write to a persistent region like JSON or MySQL to be the backend of an API for Schedules and any other services.
### Enhancements to Make Soon:
- Strip multiple (regex?) spaces from teacher names
- Rubocop complaint
- Make it write to an actual persistent database storage engine
# Just run it and it dynamically dumps the latest semester. There's a bit to do it for all of the ones in history commented out below but it'll thrash your RAM and probably piss off PatriotWeb. Also note this script could be trivially modified to correlate human readable names to semester IDs since they're just the .text attribute of the option node.
#
# There's a few minor issues like multiple spaces in teacher names and we could be scraping out email addresses but no major ones.
#
# DISCLAIMER/WARNING:
#
# This opens a number of connections pretty transparently from a script to PatriotWeb. I am not liable if you run this a million times and somehow kill over PatriotWeb. It's a scraper, not a DoS utility.