1.0.0 • Published 7 years ago

egghead-crawler v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

Egghead Crawler

Egghead Crawler allow download videos from egghead.io by API. You should have egghead subscription.

Features!

  • Download all cources or concreate course by slug
  • Download all lessons or concreate lesson by slug
  • Attempt to re-download the video file when an error occurs
  • Validate downloaded video size

Installation

Dillinger requires Node.js v8+ to run.

Install the dependencies.

$ npm i
$ cp .env.back .env

Add your egghead credentials to .env file. You also can configure video store path. Edit src/constants.js file and change BASE_SAVE_PATH

Examples

For download all cources from egghead:

$ node index --action=cources --page=1

For download all lessons from egghead:

$ node index --action=lessons --page=1

Important: Egghead API return all lessons list regardless of whether the lesson is part of the course or an independent lesson because before downloading all lessons are filtered by exists videos in course directories

For download single coure or lesson by slug:

$ node index --action=lesson|cource --slug=slug_name