# egghead-crawler

> Download videos from egghead with API

Latest version **1.0.0** (published 2017-08-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install egghead-crawler
pnpm add egghead-crawler
yarn add egghead-crawler
bun add egghead-crawler
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-08-15 |
| First published | 2017-08-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | shaman_amneziy |

## Links

- npm: https://www.npmjs.com/package/egghead-crawler
- npm.io page: https://npm.io/package/egghead-crawler

## Dependencies (8)

- [glob](https://npm.io/package/glob.md) ^7.1.2
- [colors](https://npm.io/package/colors.md) ^1.1.2
- [dotenv](https://npm.io/package/dotenv.md) ^4.0.0
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.2
- [request](https://npm.io/package/request.md) ^2.81.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.1
- [command-line-args](https://npm.io/package/command-line-args.md) ^4.0.7

## Recent versions

- 1.0.0 (latest) — 2017-08-15

## README

# 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](https://nodejs.org/) v8+ to run.

Install the dependencies.

```sh
$ 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:
```sh
$ node index --action=cources --page=1
```

For download all lessons from egghead:
```sh
$ 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:
```sh
$ node index --action=lesson|cource --slug=slug_name
```

---
_Source: https://npm.io/package/egghead-crawler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
