Node.js API for Saint Mary's University Self-Service
Using curl
.
- Cookies: http://joelpm.com/curl/tools/2010/06/17/curl-with-cookies-and-headers.html
- Referer: http://www.cyberciti.biz/faq/linux-unix-appleosx-bsd-curl-command-httpreferer/
- cURL tutorial: http://curl.haxx.se/docs/httpscripting.html
Login to selfservice.smu.ca.
Open up your Web Inspector and look for SESSID
.
SESSID={Enter your SESSID from Step 2}
curl -v --cookie "SESSID=$SESSID" --referer "https://ssb-nlive.smu.ca/pls/sNLIVE/twbkwbis.P_GenMenu?name=bmenu.P_RegMnu" "https://ssb-nlive.smu.ca/pls/sNLIVE/bwskfshd.P_CrseSchd" >> smu_user_week_at_a_glance_schedule.html
Get Week at a Glance, and Detailed Schedule using cURL with SESSID.
./cURLproof.sh SEhTRDIwMvAybTc2 output.html
1 - Week at a glance
2 - Detailed Schedule
3 - Lookup up Classes [Experimental]