š mtu-courses
Scrape all courses for a given semester from Michigan Tech's website.
Install
npm i mtu-courses
Quickstart
constĀ CoursesĀ =Ā ;Ā asyncĀ Ā {Ā Ā constĀ mtuĀ =Ā ;Ā Ā Ā awaitĀ mtu;Ā Ā Ā //Ā GetĀ allĀ meetingĀ datesĀ forĀ firstĀ loadedĀ courseĀ Ā console;Ā Ā Ā constĀ totalFeeĀ =Ā mtucourses;Ā Ā Ā console;};
(Note that the Michigan Tech website/database system is quite slow and it takes around 13-15 seconds for await mtu.load()
to complete.)
All dates/times are in UTC.
Fees are in cents instead of dollars to be consistent with the way financal data is usually handled in code.