Git Product home page Git Product logo

hello_fudan's Introduction

⚙ 自动平安复旦脚本 Hello Fudan

!!!请各位同学自行打卡,禁止代为打卡,如有疫情相关情况请及时上报,错误使用带来的后果自行承担

⭐️ 最新支持验证码的平安复旦脚本

2022/12/09 公告

  • 由学校最新通知,已经取消平安复旦每日打卡,感谢各位这两年来对本脚本的支持,欢迎同学后续继续交流学习,后会有期~!

2022/03/01 公告

  • 近来发现有同学被辅导员查到使用脚本填写,脚本后续会进行改进加强。添加地址GPS随机扰动和随机时间填写,更新时间主要看我个人何时有空,此段时间内请各位同学谨慎使用。

查看 部署教程

1. 简介 📃

本仓库是原仓库 pafd-automated 的扩展版,添加了验证码识别模块,且无需第三方的账号,识别率目前仍然是100%

使用 Github Action 实现 CI/CD,即每日自动化填报

2. 关于验证码识别 🔍

目前使用 EasyOCR 模块进行验证码识别,准确率目前可达99.9%,日后可替换为自己训练的识别模型。
欢迎大家star我的开源库 pyCAPTCHA

hello_fudan's People

Contributors

cuminumbeef avatar gootter12 avatar ichn-hu avatar potatoshred avatar sunfloweraries avatar unparalleled-calvin avatar ziyang-xie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hello_fudan's Issues

./

node.js版本需要更新
C%1SHNL(9QG5LIXTWBQDY_A

“Error: Process completed with exit code 1.”

Run STD_ID='' PASSWORD='' python3 main.py
从环境变量中获取了用户名和密码!
◉Initiating——return status code 200
◉Initiated——getting tokens
◉Login ing——return status code 302


◉登录成功


◉检测是否已提交
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 411, in connect
self.sock = ssl_wrap_socket(
File "/usr/lib/python3/dist-packages/urllib3/util/ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "/usr/lib/python3/dist-packages/urllib3/util/ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.10/ssl.py", line 1071, in _create
self.do_handshake()
File "/usr/lib/python3.10/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='zlapp.fudan.edu.cn', port=443): Max retries exceeded with url: /ncov/wap/fudan/get-info (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:997)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/runner/work/Hello_Fudan/Hello_Fudan/main.py", line 281, in
daily_fudan.check()
File "/home/runner/work/Hello_Fudan/Hello_Fudan/main.py", line 142, in check
get_info = self.session.get(
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='zlapp.fudan.edu.cn', port=443): Max retries exceeded with url: /ncov/wap/fudan/get-info (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:997)')))
Error: Process completed with exit code 1.

可能是OpenSSL的问题,需要设置一个client_context去解决~

运行失败

Error: Can't use 'tar -xzf' extract archive file: /home/runner/work/_actions/_temp_801dda65-baa3-4e05-9960-6a74fdd2a463/582f3c4c-ff6f-436b-a8b1-008f1aafd488.tar.gz. return code: 2.

咨询

我想问问这个定时任务会有什么日志反馈在什么地方吗?

运行失败

已经试过好几次,运行失败2021.12.30

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.