Giter Site home page Giter Site logo

kevcui / pluralsight-dl Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 48 KB

:twisted_rightwards_arrows: Pluralsight course downloader

License: Do What The F*ck You Want To Public License

JavaScript 28.21% Shell 71.79%
pluralsight pluralsight-course pluralsight-downloader bash bash-script

pluralsight-dl's Introduction

pluralsight-dl

pluralsight-dl.sh is a Bash script to download courses from Pluralsight.

Dependency

npm package installation

~$ cd bin
~$ npm i puppeteer-core commander

Configuration

  • This script is required to login Pluralsight account to get a valid JWT for course downloading. Create config file, put Pluralsight username and password in it. First line is username, second line is password:
<username>
<password>

How to use

Usage:
  ./pluralsight-dl.sh [-s <slug>] [-m <module_num>] [-c <clip_num>] [-r] [-l <file_dir>]

Options:
  -s <slug>          Optional, course slug
  -m <module_num>    Optional, specific module to download
  -c <clip_num>      Optional, specific clip to download
  -r                 Optional, require cf clearance in requests
                     default not required
  -l <file_dir>      Optional, enable local mode, read clip response from local dir
                     file_dir contains viewclip response json, file name must be clipId
                     default disabled
  -h | --help        Display this help message

Limitation

  • Pluralsight has a reCAPTCHA challenge to prevent DDoS. If this challenge is activated, current method is to fetch necessary cookie value from browser opened by puppeteer. Using this method, user must solve reCAPTCHA correctly once per day. Executing script with option -r, the reCAPTCHA page will be prompted in browser.

  • Pluralsight has the request limit. Once the limit is reached, the account will be permanently blocked (403). Therefore, inside the script, there are _MIN_WAIT_TIME and _MAX_WAIT_TIME in order to generate a random wait time (in second) in-between those 2 values. Hope this wait time will prevent the account being blocked.

Do keep in mind that the request limit can be restricted anytime by Pluralsight. Please take your own risk that your account can be blocked when using this script!

Disclaimer

The purpose of this script is to download courses in order to watch them later in case when Internet is not available. Please do NOT copy or distribute downloaded courses to any third party. Watch them and delete them afterwards. Please use this script at your own responsibility.

pluralsight-dl's People

Contributors

kevcui avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

manoharsai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.