psighter
v1.1.1
Published
PluralSight course downloader
Downloads
7
Readme
PSighter
PSighter is a Node library written with the purpose of downloading Pluralsight courses.
It is written in Typescript, and uses the power of puppeteer to scrape the Pluralsight portal.
Have a look at the author's portfolio Danilo Carrabino
How to compile
npm run build
Example usage
const {PSighter} = require('psighter');
/// PARAMETERS /////////////////////////////////////////////////////////////////////
let username = '<username>'; // Pluralsight username
let pw = '<password>'; // Pluralsight password
// List of courses to download
// The course name has to be:
// https://app.pluralsight.com/library/courses/<courseName>/table-of-contents
// The baseCourseFolder has to be any writable local machine folder
let courses = [
{
courseName: '<courseName1>',
baseCourseFolder: './topic1'
},
{
courseName: '<courseName2>',
baseCourseFolder: './topic2'
}
];
////////////////////////////////////////////////////////////////////////////////////
(async () => {
// PSighter instance
const pSighter = new PSighter(username, pw);
// download courses
for(let i = 0; i < courses.length; ++i) {
let course = courses[i];
await pSighter.downloadCourse(course.courseName, course.baseCourseFolder);
}
})();