DISCLAIMER: The author shall take no responsibility for any harm that is caused by someone else using the scripts. This repo was created purely out of academic interests. You are VOLUNTEERING to use it, and by doing so you acknowledge the fact that only you are responsible for yourself. And if somehow you find yourself fucked due to using the script-- idk maybe Pray to God.
Based on this repo.
- fixed that the script fails on macOS due to the maximum line length is 1024(Kernel Restriction) which is smaller than the cookies itself.
- Aside from authenticating w/ Cookies, Username & Password login is made possible again (essentially we're getting the cookies from normal login).
TL;DR Pass the cookie thru command line or just use it interactively.
python finishIt.py
: input credentials interactively
...or you can pass by argument
--user, -u {USERNAME}, --password, -p {PASSWORD}
: pass by credentials
python finishIt.py -u USER -p PASSWORD
--cookies, -c {COOKIES}
: pass directly by raw format cookies
python finishIt.py -c COOKIES
--help, -h
: show help
Notice As stated above, on macOS one should just input their username & password instead of pasting them directly in the terminal(otherwise the string would be cut off). but if you have to use Raw Cookies from clipboard or files, try command substitution:
python finishIt.py --cookies "$(cat {PATH-TO-COOKIES})" # from a file
python finishIt.py --cookies "$(pbpaste)" # from clipboard
-----Original README-----
输入账号密码或 cookie 登录并一键完成课程
可以选择课程
可指定每章节正确率
已完成和未开放的章节会自动跳过
有些朋友不会获取 cookies,特推出此教程welearn 获取 cookies 教程
- 更新了软件内部说明, 登陆模块晚一点再更新
- 感谢@yccd01提供的 pr 修复了登陆模块
- 修复了上个版本链接错误
- 修复了一些逻辑错误
- 会跳过未开放的章节了
- 支持 cookie 登录了
- 可以指定或随机正确率
- 更 pythonic(感谢 SSmJaE 大佬)
- 支持学习指定单元了
- 支持更多课程
- 优化代码
- 敲出首个版本的代码