Private
URLPrivate
_lastPrivate
_ratePrivate
_userSets the rate limit in milliseconds.
Scraper.rateLimit = 5000 // 5 seconds
Must be an integer greater than 0
Sets the user agent.
Valid W&M email address (regex: ^[a-zA-Z0-9_.+-]+@wm.edu$
)
Fetches all courses from the Open Course List.
Scraper.all({ term: 202320, concurrency: 10 }) // 74 subjects/10 batches = 7 requests => 7 requests * 500ms rate limit = 3.5 seconds
Optional
term: Pick<Filter, "term">Term code to fetch courses from (default: top term in the Open Course List dropdown)
Number of concurrent requests to make in batches
Private
extractPrivate
fetchPrivate
latestPrivate
parseHTMLPrivate
waitGenerated using TypeDoc
Initialize a new Scraper