https://github.com/summerblue/laracast_robot
A robot a download laracasts.com videos
https://github.com/summerblue/laracast_robot
Last synced: 3 months ago
JSON representation
A robot a download laracasts.com videos
- Host: GitHub
- URL: https://github.com/summerblue/laracast_robot
- Owner: summerblue
- Created: 2014-09-15T03:53:27.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-11T01:14:12.000Z (almost 9 years ago)
- Last Synced: 2025-03-21T09:35:19.331Z (3 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 29
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Introduction
This is little script for download video from http://www.laracasts.com/.
## Requirements
Reqirements:
* nodejs
* caspterjs - Headless browser
* aria2 - Powerfull command line downloader### Install nodejs
➜ brew update
➜ brew install node### Install caspterjs
➜ brew install casperjs
### Install aria2
➜ brew install aria2
## Usage: Downloading Lessons
> Please follow the steps.
### 1. Fetching all the lessons info.
casperjs lesson_pager.js
### 2. Collecting download links.
casperjs lesson_info.js
### 3. Configurate the lesson_downloader.js file
The website will check for user login credential, we must setting up the cookie for downloader `aria2`;
#### 1). Get the cookie string
1. Open Chrome Broswer link -> http://www.laracasts.com/ and login;
2. Using chrome debuger -> network, refresh the page, click for request detail, copy the cookie string;
3. Paste it onto the following link in `lesson_downloader.js` file:```
var cookie_header = '--header=Cookie: ' + 'PASTE THE COOKE HERE';
```#### 2). Modifiy the download destination folder
```
// This is the video file download dictory
var lesson_dir = '../../Learning/Laravel/Laracasts/Lesson/';
```### 4. Start the download
node lesson_downloader.js
## Usage: Downloading Series
### 1. Gathering series info
```
casperjs series_fetcher.js --web-security=no --series=https://laracasts.com/series/whats-new-in-laravel-5
```
### 2. Configurate the series_downloader.js fileJust like [before](#3-configurate-the-lesson_downloaderjs-file).
### 3. Start the download
node series_downloader.js