- php
./getClasses.php min_size #semester year
Results go to stdout, progress goes to stderr. For example, to get a list of classes with at least 100 people in semester 2 of 2014, and store the output in output.csv, run:
./getClasses.php 100 2 2014 > output.csv
The script will output a csv table which can be imported into any spreadsheet software (MS Excel, Google Sheets, Open Office Spreadsheet, etc). Note that values in the output are separated by semicolons (;) rather than commas as some course titles have commas in them. Make sure you specify this when importing or it probably won't be correctly formatted.
- getClasses.php: the main script that scrapes UNSW handbook
- match.txt: a large regular expression that recognizes the relevant parts of the page
- README.markdown: this file