Giter Site home page Giter Site logo

pkuelective2021spring's People

Contributors

fishiu avatar mzhhh 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  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  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

pkuelective2021spring's Issues

某门课程实际未被选中却变为ignored tasks

某门课程实际未被选中却变为ignored tasks,显示该课程permission required,终止程序再启动后恢复为current tasks,该情况出现了两次。但此前曾使用该程序补选成功过一门课,并未发生上述情况,2020版的程序也未出现过。

遇到错误AttributeError: 'NoneType' object has no attribute 'tobytes'

发现课程有位置后抓取验证码,之后程序中断,显示
loop.error, 'NoneType' object has no attribute 'tobytes'
Traceback (most recent call last):
File "D:\PKUElective2021Spring\autoelective\loop.py", line 527, in run_elective_loop
captcha.save(CAPTCHA_CACHE_DIR)
File "D:\PKUElective2021Spring\autoelective\captcha\captcha.py", line 47, in save
md5 = xMD5(oim.tobytes())
AttributeError: 'NoneType' object has no attribute 'tobytes'

显示unable to parse HTML content

[INFO] loop, 00:11:27, ------------------------------
[INFO] loop, 00:11:27,
[INFO] loop, 00:11:27, > Current client: 1 (qsize: 2)
[INFO] loop, 00:11:27, > Client expired time: 2021-05-29 00:19:26
[INFO] loop, 00:11:27, User-Agent: Mozilla/5.0 (Linux; Android 10; Redmi K30 Build/QKQ1.190825.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/76.0.3809.89 Mobile Safari/537.36 T7/12.0
[INFO] loop, 00:11:27,
[INFO] loop, 00:11:27, Get SupplyCancel page 1
[INFO] loop, 00:11:27, Page dump to elective.get_SupplyCancel_1622218287099.html
[ERROR] loop.error, 00:11:27, [104] unable to parse HTML content
[WARNING] loop, 00:11:27, UnexceptedHTMLFormat encountered

Unable to parse HTML content

编程0基础,具体问题如下:
[ERROR] loop.error, 23:48:57, [104] unable to parse HTML content [WARNING] loop, 23:48:57, UnexceptedHTMLFormat encountered

使用一段时间后将无法登陆选课网

在使用刷课机一段时间后会报错如下:
HTTPSConnectionPool(host='elective.pku.edu.cn', port=443): Max retries exceeded with url: /elective2008/ssoLogin.do?_rand=0.37325861354437806&token=13ebefa7a7ff3e73b0deef964739be80 (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)))
[WARNING] loop, 12:46:21, RequestException encountered
且人工手动登陆选课网也无法成功,即“当前无法使用此页面elective.pku.edu.cn 未发送任何数据。”

python main.py 报错

class Environ(object, metaclass=Singleton):
^
SyntaxError: invalid syntax

不敢自己乱改代码。。。

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.