allow spaces in course

average
Matthew Huntington 2 years ago
parent 88c8a9d383
commit fa1676a22c

@ -24,7 +24,7 @@ const scrapeInstance = async (link, page) => {
const h3elem = await page.$('h3'); const h3elem = await page.$('h3');
const h3HTML = await h3elem.getProperty('innerHTML'); const h3HTML = await h3elem.getProperty('innerHTML');
const h3Value = await h3HTML.jsonValue() const h3Value = await h3HTML.jsonValue()
const course = h3Value.match(/(?<=\()[0-9A-Za-z\-]*(?=\))/g)[0] const course = h3Value.match(/(?<=\()[ 0-9A-Za-z\-]*(?=\))/g)[0]
const droppedElem = await page.$('.instance-student-detail .dropped'); const droppedElem = await page.$('.instance-student-detail .dropped');
const droppedHTML = await droppedElem.getProperty('innerHTML'); const droppedHTML = await droppedElem.getProperty('innerHTML');

Loading…
Cancel
Save