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

Commit

Permalink
fix(study_mooc): 修复了发送 Cookie 导致无法直接获得文件的问题
Browse files Browse the repository at this point in the history
Closes: #17
  • Loading branch information
Foair committed Dec 9, 2018
1 parent 7ae2d38 commit 4a1d517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,4 @@ ENV/
# Node
node_modules/
yarn.lock
commitlint.config.js
2 changes: 1 addition & 1 deletion mooc/study_mooc.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def get_resource(term_id):
res_print(params['fileName'])
file_name = '%s %s' % (counter, file_name)
CANDY.download_bin('https://www.icourse163.org/course/attachment.htm',
WORK_DIR.file(file_name), params=params)
WORK_DIR.file(file_name), params=params, cookies={'STUDY_SESS': None})
counter.reset()

if video_list:
Expand Down

0 comments on commit 4a1d517

Please sign in to comment.