npm i --save scele-crawler
const sceleCrawler = require("scele-crawler");
await sceleCrawler.login("SSO-USERNAME", "SSO-PASSWORD");
const profile = sceleCrawler.getProfile();
console.log(profile.npm);
console.log(profile.fullName);
console.log(profile.nickName);
const courses = sceleCrawler.getCourses();
courses.forEach(course => {
console.log(course.longTitle);
console.log(course.shortTitle);
});
const courseDetail = await courses[0].fetchDetail();
Object.keys(courseDetail).forEach(title => {
console.log(title);
});
console.log(courseDetail[title].announcement);
courseDetail[title].contents.forEach(content => {
console.log(content.title)
console.log(content.type);
console.log(content.link);
console.log(content.comment);
});