点击连接
安装:
git clone https://github.com/webbought/imoocDownloader.git
cd imoocDownloader
npm install
配置好config文件:
这里面的数字是视频网站后面的id, 例如: http://www.imooc.com/learn/24
'use strict'
module.exports = {
videoDir : './video',
targets : [552,556,21,441,11]
}
配置好后, 执行下面代码开始下载, 下载配置中数字中的全部:
node index.js
其他代码:
node index.js --search mongodb
显示某个id中的列表
node index.js --list 578
也可以单独下载:
node index.js --download 578 或者 node index.js --download 75,578
作者:影子很淡的人
链接:https://www.jianshu.com/p/aed399eafd75
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。