fatpandac / fuck_cqooc Goto Github PK
View Code? Open in Web Editor NEW一个重庆高校在线开放课程平台刷课工具
Home Page: https://fuckcqooc.fatpandac.com
License: MIT License
一个重庆高校在线开放课程平台刷课工具
Home Page: https://fuckcqooc.fatpandac.com
License: MIT License
测验自动作答
解决一些没必要的问题
No response
Greetings, fire here!
@Fatpandac recently invited @fire-bot to this repository. Before fire is enabled, @Fatpandac needs to complete a few steps:
Only @Fatpandac will be able to enable fire using the above link. If someone added fire by mistake, feel free to remove @fire-bot from your repo's collaborators.
批量使用core模块的skip_section函数,函数中的post操作有时会得到503错误,并在后面的json解析中出现错误。
创建core对象,并登录、获取课程、获取课程任务,使用一批sectionId列表让skip_section函数处理,出现错误。
core.py中login()解析nonce_res.text时抛出异常。
请求得到的nonce_res是一个403响应,其中text内容是个html页面。我猜有可能是登陆方式变了。
JSONDecodeError Traceback (most recent call last)
in
----> 1 c.login()
c:\ ...\fuck_cqooc\src\core.py in login(self)
34 nonce_res = self.__request.do_get(self.__api_url.get_nonce_api())
35 print(nonce_res.text)
---> 36 data = json.loads(nonce_res.text)
37 cn = test.cnonce()
38 hash = test.getEncodePwd(
c:\Users\ ...\AppData\Local\Programs\Python\Python39\lib\json_init_.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
344 parse_int is None and parse_float is None and
345 parse_constant is None and object_pairs_hook is None and not kw):
--> 346 return _default_decoder.decode(s)
347 if cls is None:
348 cls = JSONDecoder
c:\Users\ ...\AppData\Local\Programs\Python\Python39\lib\json\decoder.py in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
c:\Users\ ...\AppData\Local\Programs\Python\Python39\lib\json\decoder.py in raw_decode(self, s, idx)
353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
--> 355 raise JSONDecodeError("Expecting value", s, err.value) from None
356 return obj, end
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
课程完成状态正常显示
如果使用手机号码登录,会遇到课程完成状态无法正常显示
目前已经在 hackcqooc v0.0.11 修复
如果有遇到相关问题,请通过源代码运行
该项目不会太快发布新版本
No response
无
From SyncLinear.com | FAT-12
File "ui\dashboardRoot.py", line 208, in login
File "src\core.py", line 59, in login
File "src\core.py", line 30, in __process_user_info
批量使用core模块的skip_section函数,函数中的post操作有时会得到503错误,并在后面的json解析中出现错误。
创建core对象,并登录、获取课程、获取课程任务,使用一批sectionId列表让skip_section函数处理,出现错误。
xsid获取失败了
File "c:\Users\M\Desktop\fuck_cqooc-master\src\dashboardRoot.py", line 208, in login
loginResult = self.core.login()
File "C:\Users\M\AppData\Local\Programs\Python\Python37\lib\site-packages\hackcqooc\core.py", line 85, in login
if self.__user.get_cookie() is None
File "C:\Users\M\AppData\Local\Programs\Python\Python37\lib\site-packages\hackcqooc\core.py", line 54, in __login_by_pwd
login_success = data["code"] == 0
win10
请将本段信息发送到github.com/Fatpandac/fuck_cqooc/issues,使用快捷键Ctrl+A和Ctrl+C复制。
===============================================
File "c:\Users\M\Desktop\fuck_cqooc-master\src\dashboardRoot.py", line 208, in login
loginResult = self.core.login()
File "C:\Users\M\AppData\Local\Programs\Python\Python37\lib\site-packages\hackcqooc\core.py", line 85, in login
if self.__user.get_cookie() is None
File "C:\Users\M\AppData\Local\Programs\Python\Python37\lib\site-packages\hackcqooc\core.py", line 54, in __login_by_pwd
login_success = data["code"] == 0
===============================================
File "ui\dashboardRoot.py", line 208, in login
File "src\core.py", line 59, in login
File "src\core.py", line 30, in __process_user_info
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.