由于慕课网现在的视频播放机制已经跟写项目时有所改变,所以部分视频会无法下载,该项目也不再维护
imoocDownloader 用来爬取慕课网课程视频
git clone https://github.com/webbought/imoocDownloader.git
cd imoocDownloader
npm install
'use strict'
module.exports = {
videoDir : './video',
targets : [552,556,21,441,11]
}
node index.js <command> <arguments>
Options:
-h, --help output usage information
-V, --version output the version number
-s, --search <n> Search course specified by keywords
-l, --list <n> Show the Chapters and Lessons by course Id
-d, --download <n> Download the Course By course Id
node index.js --search mongodb
node index.js --list 578
node index.js --download 578
or
node index.js --download 75,578
课程目录
章节目录
视频目录