This is little script for download video from http://www.laracasts.com/.
Reqirements:
- nodejs
- caspterjs - Headless browser
- aria2 - Powerfull command line downloader
➜ brew update
➜ brew install node
➜ brew install casperjs
➜ brew install aria2
Please follow the steps.
casperjs lesson_pager.js
casperjs lesson_info.js
The website will check for user login credential, we must setting up the cookie for downloader aria2
;
- Open Chrome Broswer link -> http://www.laracasts.com/ and login;
- Using chrome debuger -> network, refresh the page, click for request detail, copy the cookie string;
- Paste it onto the following link in
lesson_downloader.js
file:
var cookie_header = '--header=Cookie: ' + 'PASTE THE COOKE HERE';
// This is the video file download dictory
var lesson_dir = '../../Learning/Laravel/Laracasts/Lesson/';
node lesson_downloader.js
casperjs series_fetcher.js --web-security=no --series=https://laracasts.com/series/whats-new-in-laravel-5
Just like before.
node series_downloader.js