Skip to content

merry75/educative.io-downloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

educative.io downloader

This tool is to download course from educative.io for later usage. It uses your login credentials and download the course.

IMPORTANT

  • You need a subscription to use this.
  • Might not work in WSL

Usage

  • Install typescript cli.
  • Clone the project and navigate into it.
  • npm install to install dependencies.
  • Open config/default.json file to set configurations. (Email, Password, Course URL).
  • npm run compile to compile typescript.
  • npm start to start download.

IMPORTANT: If you make changes to the code, make sure to compile it.

CONFIG

Config file (config/default.json) has the following properties.

  • email: Your subscription email.
  • password: Your subscription password.
  • loginCheck: By default, before downloading a course we check if you are already logged in. If you are sure that you are already logged in then you can set this value to false to skip login check. Recommended value: true.
  • multiLanguage: A lesson can contains code snippets in multiple programming languages. Set this to true to download snippets in all available language. Default is false.
  • saveAs: Available options: pdf and html. Default is html.
  • headless: Browser mode. Default is false.

IMPORTANT: If you save as html it is actually gonna save as mhtml.

TROUBLESHOOT

NAVIGATION TIMEOUT (Or, some other timeout)?

  • Open globals.ts and increase the value of HTTP_REQUEST_TIMEOUT. Default is 30000ms.

DOWNLOAD EMPTY PAGE?

  • Verify your login credentials and set loginCheck: true.
  • Open browser.ts file and find launchBrowser() and set headless: false to see live actions.
  • Make sure you are logged in.

FORCE LOGIN? LOGIN TO ANOTHER ACCOUNT?

  • Remove data directory. Chrome driver stores session/cookies etc in that directory.

SOMETHING IS WRONG?

  • Remove data directory. Chrome driver stores session/cookies etc in that directory.

I have created this for my own usage. You might find a lot of issues. Feel free to create a PR.

About

📖 This tool is to download course from educative.io for offline usage. It uses your login credentials and download the course.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%