Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

notch1p/welearn-oneclick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

WelearnFinishALL

Based on this repo.

Changes

  • 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).

Usage

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

Raw cookies

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 教程

更新日志

0.7dev

  • 更新了软件内部说明, 登陆模块晚一点再更新

0.6dev

  • 感谢@yccd01提供的 pr 修复了登陆模块

0.5dev

  • 修复了上个版本链接错误
  • 修复了一些逻辑错误

0.4dev

  • 会跳过未开放的章节了
  • 支持 cookie 登录了
  • 可以指定或随机正确率

0.3dev

  • 更 pythonic(感谢 SSmJaE 大佬)
  • 支持学习指定单元了

0.2dev

  • 支持更多课程
  • 优化代码

0.1dev

  • 敲出首个版本的代码

Releases

No releases published

Packages

No packages published

Languages