psighter
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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);
    }
})();

Readme

Keywords

none

Package Sidebar

Install

npm i psighter

Weekly Downloads

1

Version

1.1.1

License

ISC

Unpacked Size

31 kB

Total Files

9

Last publish

Collaborators

  • heavydany