Giter Club home page Giter Club logo

fuck_cqooc's Introduction

My GitHub Status

Discord

fuck_cqooc's People

Contributors

fatpandac avatar pre-commit-ci[bot] avatar rx-105 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fuck_cqooc's Issues

批量使用core模块的skip_section函数会出现503错误

描述

批量使用core模块的skip_section函数,函数中的post操作有时会得到503错误,并在后面的json解析中出现错误。

复现步骤

创建core对象,并登录、获取课程、获取课程任务,使用一批sectionId列表让skip_section函数处理,出现错误。

运行报错

===============================================
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

[Bug] core的login()无法使用

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)

bug

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

登录接口报错

预期是什么?

xsid获取失败了

实际发生了什么?

请将本段信息发送到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

系统相关信息

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

这不是重复的 issue

  • 我已经搜索了现有 issue,以确保该错误尚未被报告。

批量使用core模块的skip_section函数会出现503错误

描述

批量使用core模块的skip_section函数,函数中的post操作有时会得到503错误,并在后面的json解析中出现错误。

复现步骤

创建core对象,并登录、获取课程、获取课程任务,使用一批sectionId列表让skip_section函数处理,出现错误。

可以做题吗

这是一个什么样的功能?

做题

这个功能可以解决什么问题?

做题

额外描述

做题

这不是重复的功能请求

  • 我已经搜索了现有 issue,以确保这项功能尚未被请求。

[FAT-12] 课程完成状态无法正常显示

预期是什么?

课程完成状态正常显示

实际发生了什么?

如果使用手机号码登录,会遇到课程完成状态无法正常显示
目前已经在 hackcqooc v0.0.11 修复
如果有遇到相关问题,请通过源代码运行
该项目不会太快发布新版本

系统相关信息

No response

额外信息

这不是重复的 issue

  • 我已经搜索了现有 issue,以确保该错误尚未被报告。

From SyncLinear.com | FAT-12

测验自动作答

这是一个什么样的功能?

测验自动作答

这个功能可以解决什么问题?

解决一些没必要的问题

额外描述

No response

这不是重复的功能请求

  • 我已经搜索了现有 issue,以确保这项功能尚未被请求。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.