GithubHelp home page GithubHelp logo

pafd-automated's Introduction

致敬所有用户,希望你们能保持反叛的精神,运用智慧——如果无法通过勇气的话,来做一些不一样的事。

R.I.P PAFD, 2020.02 - 2022.12.09

image

自动填写 PAFD

⚠️⚠️:本项目填写地址的原理是自动延续上一次手动填写的;所以如果您中长期切换了居住地,如寒暑假/交流等,请务必在地址稳定后手动填写一次让之后的地址自动填写正确,否则可能会被学校锁门禁权限

update: 如果你是 PAFD 的用户,对技术感兴趣,欢迎加入我们的 slack 组织,用 fudan.edu.cn 或者 m.fudan.edu.cn 的学号邮箱点击这里注册加入 slack (可能需要科学上网工具)

技术原理解读文章

update: 如果你收到了填报失败的通知,可以考虑更新一下你的 fork,在你原来 fork 的仓库页面,点击 fetch upstream 即可

image

credit: 这份代码受 daily_fudan 启发,并参考了其实现方式,在此表示感谢。

首先请注册一个 GitHub 帐号,然后点击右上角的 fork 创建一个副本。

fork

然后在你 fork 的副本中,点击 Settings, Secrets 和 New secret

create-secrets

然后创建两个值,Name 为 STD_ID 的在 Value 里填入学号

id

password

Name 为 PASSWORD 的在 Value 里填入 UIS 密码。这里可以不用担心安全性问题,这些 scecrets 的值只有你能看见,此外因为背后是 GitHub 为你保障安全——GitHub 的安全性应该比复旦的 UIS 要高。

通过 GitHub Action,每天十点会自动运行脚本帮你填写 PAFD,填写的地址是上一次的位置,从而你再也不用担心被辅导员催啦~

pafd-automated's People

Contributors

ahacad avatar austin-w avatar darkway-s avatar gootter12 avatar ichn-hu avatar potatoshred avatar sunfloweraries avatar ziyang-xie 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  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pafd-automated's Issues

关于识别准确率问题

目前的easyocr readtext识别准确率较低,识别平均成功率应该在50%以下,使用pillow对初始图像进行去噪和图像增强,可以提高准确率至接近100%。增加了allowlist,进一步提升识别准确率。

# Confidence = 0.99
[([[6, 4], [68, 4], [68, 28], [6, 28]], 'BCEP', 0.9911248683929443)]

正确率可达100%

等我提个pr

新年时 CI 运行失败

◉登录成功
***********************

◉检测是否已提交
Traceback (most recent call last):
  File "main.py", line 224, in <module>
    daily_fudan.check()
  File "main.py", line 133, in check
    print("◉上一次提交日期为:", last_info["d"]["info"]["date"])
TypeError: 'bool' object is not subscriptable
Error: Process completed with exit code 1.

貌似是每过一年就会失效一次?虽然这不算一个特别大的 bug,毕竟说不定都填不满一年

被查水表了!可能是ip的问题!

如题,前几天被发了个查水表的邮件,说识别出来可能是自动打卡了TAT

我怀疑可能是ip的问题。我看了一下old_info,里面存在一个ip,查询以后发现果然是美国的微软云,所以想请教一下该怎么解决这个问题呢?感谢!

slack用学校邮箱不是自投罗网吗

update: 如果你是 PAFD 的用户,对技术感兴趣,欢迎加入我们的 slack 组织,用 fudan.edu.cn 或者 m.fudan.edu.cn 的学号邮箱点击这里注册加入 slack (可能需要科学上网工具)

全部抓获.jpg

可能的bug

1051649744537_ pic
学校最近更新了这样一条项目,虽然不填也能过,还是想问一下能否更新一下版本填一下这个项目。

GitHub CI 60 days limit

GitHub 自动跑每 60 天会自己停掉,不确定能不能通过设置更改;可以加一行提醒同学们每隔 60 天去 GitHub Actions 里面重新 enable 一下。

UNSAFE_LEGACY_RENEGOTIATION_DISABLED

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)')))

技术原理-微信小程序URL的获取方式

我想请问下,技术原理文档中的用URL在浏览器中打开平安复旦是从哪里获取的?或者说普遍的微信小程序可以通过URL打开吗,URL的获取方式是什么?谢谢!!

忽然好几天连续打卡失败了

已经好几天连续打卡失败了,报的错都是
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.
这是什么问题呢??

祝贺平安负担的结束

时隔近三年,疫情虽然还没有完全结束,
但随着“新十条”等的宣布,平安焦大终于被下线了。
谨以此纪念被这种形式主义浪费了大概1000多分钟/每人的时间。

今天突然报错

Screenshot_20211230_094158
已经用了两个月都没有问题,但在今天早上突然收到报错,重新运行几次都卡在了98.4%处,报错139,代码应该没有变化,怎么解决呢?

build - run 运行失败

报错信息:

Run STD_ID=*** *** python3 main.py
STD_ID=*** *** python3 main.py
shell: /usr/bin/bash -e {0}
从环境变量中获取了用户名和密码!
◉Initiating——return status code 200
◉Initiated——getting tokens
◉Login ing——return status code 302


◉登录成功


◉检测是否已提交
Traceback (most recent call last):
File "main.py", line 304, in
daily_fudan.check()
File "main.py", line 146, in check
print("◉上一次提交日期为:", last_info["d"]["info"]["date"])
TypeError: 'bool' object is not subscriptable
Error: Process completed with exit code 1.

不知道有没有其他同学遇到相似的问题。

连续多日打卡失败,login()返回200

RT,login()函数内执行post后返回的status code为200(正常是302),具体原因是什么我不知道。原版的daily_fudan仓库我执行的时候也有相同的现象。

大家有遇到类似的问题么?

另外,最近uis登陆的时候经常需要验证码,不知道有没有关联性。

连续多次打卡失败

问题好像是:
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)
请教这是为什么,如何修改?(啥也不懂,求讲的具体一些,谢谢!)

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.