rhilip / cn-mooc-dl Goto Github PK
View Code? Open in Web Editor NEWScript for downloading MOOCs(Refactoring....)
License: MIT License
Script for downloading MOOCs(Refactoring....)
License: MIT License
课程连接:http://www.xuetangx.com/courses/course-v1:ChongqingU+IPG01002X+sp/about
在下载这个课程时,提示index out of range 但是我不太会处理 求帮助
File "E:/cn-mooc-dl-master/cn-mooc-dl-master/xuetangx-dl.py", line 16, in get_video
video_link = resp_json['sources']['quality10'][0]
IndexError: list index out of range
如果保存settings.conf时用了gb2312,运行icourse163-dl时会提示:
Traceback (most recent call last):
File "G:\git\cn-mooc-dl\icourse163-dl.py", line 215, in <module>
main(course_url)
File "G:\git\cn-mooc-dl\icourse163-dl.py", line 11, in main
config = model.config("settings.conf", "icourse163")
File "G:\git\cn-mooc-dl\model\config.py", line 36, in load_config
config.read(config_file, encoding="utf-8-sig")
File "C:\Program Files\Python36\lib\configparser.py", line 697, in read
self._read(fp, filename)
File "C:\Program Files\Python36\lib\configparser.py", line 1015, in _read
for lineno, line in enumerate(fp, start=1):
File "C:\Program Files\Python36\lib\codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
File "C:\Program Files\Python36\lib\encodings\utf_8_sig.py", line 69, in _buff
er_decode
return codecs.utf_8_decode(input, errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 359: invali
d continuation byte
http://www.icourse163.org/learn/BIT-1001870002
试试这个地址,会有error
Course url
https://www.icourse163.org/learn/NUDT-1001615004?tid=1001692001
Traceback (most recent call last):
File "icourse163-dl.py", line 215, in
main()
File "icourse163-dl.py", line 133, in main
lesson_name = model.clean_filename(model.raw_unicode_escape(lesson_re.group("lesson_name")))
File "D:\Users\John\Documents\GitHub\cn-mooc-dl\model\download.py", line 59, in raw_unicode_escape
return string.encode('utf-8').decode('unicode_escape').encode('gbk', 'ignore').decode('gbk', 'ignore')
UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 36: \ at end of string
用Aria2下载的,最后剩下一大堆未完成的下载,且报错信息基本类似:
08/07 21:09:35 [ERROR] CUID#25 - Download aborted. URI=http://v.stu.126.net/mooc-video/nos/mp4/2014/10/07/772069_hd.mp4
Exception: [AbstractCommand.cc:403] errorCode=1 URI=http://v.stu.126.net/mooc-video/nos/mp4/2014/10/07/772069_hd.mp4
-> [RequestGroup.cc:760] errorCode=1 Download aborted.
-> [DefaultBtProgressInfoFile.cc:300] errorCode=1 total length mismatch. expected: 43591489, actual: 43591457
看了wiki ,现在全部没有说明了
No termId which you want to download.Will Choose the Lastest term.
The Download INFO:
link:http://www.icourse163.org/course/JNU-1001929011#/info
Course:英语语法与写作-暨南大学-朱湘军
id:1002032021
课程封面图: http://imgsize.ph.126.net/?enlarge=true&imgurl=http://edu-image.nosdn.127.net/8C79A95A8D7E9B5D627788A19297E17E.jpg?imageView&thumbnail=426y240&quality=100_426x240x1x95.png
课程简介视频: http://v.stu.126.net/mooc-video/nos/mp4/2017/04/09/1006068657_bb309f3b939541fdaa767e636c373b9c_shd.mp4?ak=99ed7479ee303d1b1361b0ee5a4abceec7d3f9599b720dd7029d510950335a747de3cc9cf5e224ae6f89fb9ee8d7b59ab7ad2356c52c883d3ee0aaa1ca7571910015e48ffc49c659b128bfe612dda086d65894b8ef217f1626539e3c9eb40879c29b730d22bdcadb1b4f67996129275fa4c38c6336120510aea1ae1790819de86e0fa3e09eeabea1b068b3d9b9b6597acf0c219eb000a69c12ce9d568813365b3e099fcdb77c69ca7cd6141d92c122af
Error:"not_auth",Please make sure you login by 163-email and your "Session-Cookies" pair is right.
course_url = "http://www.xuetangx.com/courses/course-v1:TsinghuaX+20440333X+sp/about"
Traceback (most recent call last):
File "xuetangx-dl.py", line 182, in
main(course_url)
File "xuetangx-dl.py", line 102, in main
tab_list[tab.get('id')] = re.search("(.+)", tab.get('title')).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.