VikeLabs / uvic-course-scraper

A Node.js scraper library for UVic Course and Schedule Information
GNU General Public License v3.0
13 stars 7 forks source link

Add Client API method to return the Class Schedule Listing page. #79

Open aomi opened 3 years ago

aomi commented 3 years ago

Currently, the only way to get information from this page is by invoking getCourseSections, which is an expensive call as it needs to make several round-trips to create the response. For advanced users, they can reduce the RTT by making one less call (Class Schedule Listing page) if that page is saved (and therefore the CRNs) since this page does not change very frequently.

isaaccormack commented 3 years ago

is this still relevant / what do you mean by this? caching the sections page in the npm package? Our current implementation (as of the latest API refactoring) gets the Class Schedule Listing page, parses it, and returns it.