Skip to content

Commit

Permalink
fw3oypng
Browse files Browse the repository at this point in the history
  • Loading branch information
Foair committed Aug 17, 2018
1 parent 4f8ae0d commit ba33ab4
Show file tree
Hide file tree
Showing 11 changed files with 62 additions and 30 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

## Course Crawler

?> 部分功能在程序中尚未实现,在本文档中写出只起占位的作用,以后会逐步实现。

一个基于 Python 3 的 MOOC 课程内容获取工具,方便离线观看。

支持 [中国大学MOOC](https://www.icourse163.org/)[学堂在线](http://www.xuetangx.com/)[网易云课堂 MOOC 课程](http://mooc.study.163.com/)~~[好大学在线](http://www.cnmooc.org/)~~~~[爱课程](http://www.icourses.cn/)~~
支持 [中国大学MOOC](https://www.icourse163.org/)[学堂在线](http://www.xuetangx.com/)[网易云课堂 MOOC 课程](http://mooc.study.163.com/)[好大学在线](https://www.cnmooc.org/)[爱课程](http://www.icourses.cn/)

结构齐全、命名规范,可以很方便定位和查找。

Expand All @@ -20,7 +18,7 @@

**学堂在线** 是清华大学发起的精品中文慕课平台。主要是 **清华大学** 的课程。

**好大学在线** 是上海交通大学拥有的中国顶尖慕课平台。主要是 **上海交通大学** 的课程
**好大学在线** 是上海交通大学拥有的中国顶尖慕课平台。主要是 **上海交通大学** 等大学或机构的课程

**网易云课堂 MOOC 课程** 主要是 [顶尖中文大学计算机专业课程体系](http://study.163.com/curricula/cs.htm)[深度学习工程师微专业](http://mooc.study.163.com/smartSpec/detail/1001319001.htm) 等课程。

Expand Down
1 change: 1 addition & 0 deletions _sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* [FAQ](faq.md)
* [反馈和建议](feedback.md)
* [已知问题](known-issues.md)
* [版本历史](history.md)
* [一些技巧/建议](knack.md)
* [未来可能的计划](future-plan.md)
* [告示板](notice.md)
25 changes: 9 additions & 16 deletions advance/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,39 @@ python mooc.py https://www.icourse163.org/course/TONGJI-53004 -d "G:\MOOCs"

!> `<path>` 不能以 `\` 结尾;当 `<path>` 存在空格的时候,必须使用 `"` 将路径包裹起来。

## 不下载 PDF
## 不下载文档

> `--no-pdf` 用于阻止下载 PDF 文档
> `--no-doc` 用于阻止下载 PDF、Word、PowerPoint 等文档
默认会下载所有 PDF 课件
默认会下载所有文档


当指定了这个选项之后,不会下载任何 PDF 文件(包括 PPT 和书籍等)。
当指定了这个选项之后,不会下载任何文档(包括 PPT 和书籍等)。

示例

```cmd
python mooc.py https://www.icourse163.org/course/TONGJI-53004 --no-pdf
python mooc.py https://www.icourse163.org/course/TONGJI-53004 --no-doc
```

?> 指定这个选项,仅仅是不下载 PDF 格式的文件,千万不要认为有 Word 或 PowerPoint 文档可以下载。


## 修正视频/文档名

!> 未完成。

> `-i` 用于修改文件名。
> `--inter` 用于修改文件名。
会调出文件编辑器,编辑好视频的名字之后保存。默认没有启用。

## 不下载字幕
!> 请严格按照原来文本长度进行设置,否则可能会发生没有标题的情况。

!> 未完成。
## 不下载字幕

> `--no-sub` 用于阻止下载字幕。
## 不下载富文本

!> 未完成。

> `--no-text` 用于阻止下载富文本。
## 不下载附件

!> 未完成。

> `--no-file` 用于阻止下载附件。
10 changes: 8 additions & 2 deletions faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@
登录信息是保存在文件里的,不同的 MOOC 网站对应的文件不同,只要删除对应的文件就会要求重新输入。

- 学堂在线 `cookies_xuetangx.json`
- 网易云课堂 `cookies_mooc_study.json`
- 学堂在线 `xuetangx.json`
- 网易云课堂 `study_163_mooc.json`
- 好大学在线 `cnmooc.json`

> 我遇到了一个课程无法成功获取,最快捷的反馈方式是?
依次进行如下检查:

- Cookie 是否失效,如果失效请删除 JSON 文件并重新填写;
- 当前账号是否加入了该课程,并对该课程有访问权限。

提出一个 issue 或发送一封邮件(见 [反馈和建议](feedback.md)),无需客套话,我会尽快处理的。

> 我想看旧版文档。
Expand Down
6 changes: 4 additions & 2 deletions future-plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
- 直接将下载地址送入 aria2
- 生成播放列表 ✅
- 检查视频完整性
- 可以二次修改文件名 🎉[进行中]
- 可以二次修改视频文件名 ✅
- 学堂在线·使用 app 中的接口 ⏲[2018 夏]
- WebUI 用户界面
- 更加先进和全面的管理系统
- 好大学在线·慕课 🚩[优先]
- 好大学在线·慕课
- 完整的视频教程 🚩[优先]
- 更加详细和清晰的文档 ✅
- 对非 Python 的使用者更加友好的操作 🚩[优先]
- 增加视频清晰度选择
- 课程增量更新
- 当视频的文件名没有意义的时候使用二级标题

7 changes: 7 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 版本历史

2018-08-17

- 添加了·好大学在线·和·爱课程·的支持;
- 使用了面向对象的设计,提高了编码速度;
- 添加了命令行参数 `--inter`,实现修改视频文件名。
4 changes: 2 additions & 2 deletions known-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
解决方法:等待一段时间然后重新尝试。

> 网易云课堂·的 cookies 很容易失效。
> 网易云课堂·的 Cookie 很容易失效。
解决方法:更加频繁地修改 cookies
解决方法:更加频繁地修改 Cookie
2 changes: 1 addition & 1 deletion notice.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@

## 感谢

docsify https://github.com/QingWei-Li/docsify
docsify https://github.com/docsifyjs/docsify

以及你们的支持。
2 changes: 1 addition & 1 deletion quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ python mooc.py https://www.icourse163.org/course/TONGJI-53004

打开 `Videos/Videos.txt` 即可查看视频下载地址,复制下载地址后,使用自己喜欢的下载工具下载即可。

?> 课程文件中有 `Videos` 文件夹,建议将视频下载到 `Videos/` 中。
?> 课程文件夹中有 `Videos` 文件夹,建议将视频下载到 `Videos/` 中。

## 后续

Expand Down
16 changes: 15 additions & 1 deletion specific/cnmooc.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 好大学在线

!> 未完成。
要想获得课程必须保证一下两个条件均满足:

- 已经在客户端或 Web 端手动加入课程;
- 当前课程已经在开课时间内。

课程地址类似:

```
https://www.cnmooc.org/portal/course/4386/9729.mooc
```

同·中国大学MOOC·一样,可以通过切换「开课班级」参加以前的课程。

如果当前课程还未开课,可以切换到以前的班次,并加入,这样就可以获得视频等资源。

13 changes: 12 additions & 1 deletion specific/icourses.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 爱课程

!> 未完成。
爱课程需要的视频地址类似如下:

```
http://www.icourses.cn/web/sword/portal/videoDetail?courseId=1013d845-1344-1000-b974-22f745f72788#/?resId=10195dd1-1344-1000-bbd7-22f745f72788
```

只要是以如下地址开始都可以,不用在意是在那一个视频。

```
http://www.icourses.cn/web/sword/portal/videoDetail
```

0 comments on commit ba33ab4

Please sign in to comment.