Skip to content

Commit

Permalink
190929 增加华文慕课解析功能
Browse files Browse the repository at this point in the history
  • Loading branch information
univerone committed Sep 29, 2019
1 parent 65018b7 commit 4a0799a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
11 changes: 2 additions & 9 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
# Icouse-Downloader
icourse-downloader可以根据课程链接下载[爱课程网](https://www.icourses.cn/home/)
上的视频以及课件文档等
![](https://img.shields.io/github/repo-size/webscrapingproject/icourse-downloader)

## 1.使用方法
下载编译好的exe文件(windows平台)或者二进制文件(Linux和mac平台),在cmd或者终端里执行(链接可换成其它课程)
下载爱课程的视频课程:
```bash
./icourse http://www.icourses.cn/sCourse/course_6447.html
```
下载华文慕课的课程:
```bash
./icourse http://www.chinesemooc.org/mooc/4880
```
## 2.参数说明
### 2.1 爱课程下载参数
```
icourse -c <option(all,most,videoPPT,assignments,testPaper,shareResource)> -o <outputPath> <url-of-icourse>
icourse -co <option(all,most,videoPPT,assignments,testPaper,shareResource)> -o <outputPath> <url-of-icourse>
```
基本参数解释如下
基本参数解释如下:
```
<option> 下载内容的选择,仅支持单选
all 下载全部内容
Expand All @@ -22,3 +30,15 @@ shareResource 仅下载其它公开资源
<outputPath> 指定下载路径
<url-of-icourse> 课程主页的链接,格式同:http://www.icourses.cn/sCourse/course_6447.html
```
### 2.2 华文慕课下载参数
```
icourse -co <option{all, video , PPT}> -o <outputPath> <url-of-icourse>
```
基本参数解释如下:
```
<option> 下载内容的选择,仅支持单选
all 下载全部内容
video 仅下载课件视频
PPT 仅下载课程课件
```

4 changes: 2 additions & 2 deletions config/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package config

// VERSION version of annie
const VERSION = "0.0.1"
// 版本号
const VERSION = "0.0.2"

0 comments on commit 4a0799a

Please sign in to comment.