Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

中国大学MOOC课程解析一半出错 #21

Closed
ruoleng opened this issue Nov 5, 2018 · 4 comments
Closed

中国大学MOOC课程解析一半出错 #21

ruoleng opened this issue Nov 5, 2018 · 4 comments

Comments

@ruoleng
Copy link

ruoleng commented Nov 5, 2018

(错误简述)

网站:中国大学MOOC

课程地址:https://www.icourse163.org/course/NUEPU-292001?tid=1002962002

问题描述:课程分析完第三周 第二讲的【富文本】个性与职业的适配性选择报错
Traceback (most recent call last):
File "mooc.py", line 87, in
main()
File "mooc.py", line 62, in main
icourse163.start(args.url, config)
File "...\course-crawler\mooc\icourse163.py", line 175, in start
get_resource(course_info[0])
File "..\course-crawler\mooc\icourse163.py", line 134, in get_resource
params = {'nosKey': re.search('nosKey":"(.+?)"', text[3]).group(1),
AttributeError: 'NoneType' object has no attribute 'group

@ruoleng
Copy link
Author

ruoleng commented Nov 5, 2018

重新尝试了下载,又能完整解析了,没出错。

@ruoleng ruoleng closed this as completed Nov 5, 2018
@ruoleng
Copy link
Author

ruoleng commented Nov 5, 2018

晕了,连续下几个课程搞混了。 这个课程还是有问题的,会报错上面的错,希望能看下原因 @Foair

@SigureMo
Copy link
Contributor

SigureMo commented Nov 5, 2018

请参考issues19

@ruoleng
Copy link
Author

ruoleng commented Nov 6, 2018

请参考issues19

直接用你的分支,输入Cookie后下载成功了。谢谢了。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants