This repository has been archived by the owner on Jan 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 196
网易云课堂课程,下载得到的附件压缩包(主要是代码文件)显示损坏无法打开 #17
Comments
全部这样吗?删掉重试呢?使用文本编辑器打开看看,里面是二进制内容还是HTML的"页面错误"内容 |
有空加个Debug用的log文件吧 @Foair 把网址等信息,都记录下来,他这个还真不好测试…… |
<script>
window.open("https://www.icourse163.org/course/attachment.htm?nosKey=970E89E9A7FD4BCECA750BB6CC1E99B6-1472021484929&fileName=HttpDemoAndPPT.zip",'_self');
</script>
这个是用notepad++打开后显示的 |
喵?Σ(⊙▽⊙"a我直接用requests测试是可以下的,那个文件修改扩展名为HTML后打开也是自动跳转下载的,emmmmmmm不资到为撒能把那个页面download下来 |
问题在我的课程C++程序设计入门(下)重现 file_name = '%s %s' % (counter, file_name) # 下面是要修改的内容
with open(WORK_DIR.file(file_name), 'wb') as f:
r = requests.get('https://www.icourse163.org/course/attachment.htm', params=params)
f.write(r.content) file_name = '%s %s' % (counter, file_name) # 下面是要修改的内容
CANDY.download_bin('https://www.icourse163.org/course/attachment.htm',
WORK_DIR.file(file_name), params=params, cookies={'STUDY_SESS': None}) 位置在study_mooc.py 167行左右 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
(错误简述)
网站:网易云课堂 MOOC
课程地址:https://mooc.study.163.com/learn/1000013001?tid=2001493000
问题描述:下载课程附件(主要是代码压缩包),显示压缩包损坏无法打开
The text was updated successfully, but these errors were encountered: