buctAuthentication/README.md
2025-06-04 15:43:21 +08:00

14 lines
612 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# BUCT校园网自动认证
用selenium实现的主要放在树莓派上。
使用systemd管理自启动。
用crontab理论上也行。
由于用到了logging。所以service里面要加上`WorkingDirectory=/path/to/programe`。出错先找找权限问题。
---
现在还是有点问题。比如说没有连接wifi的情况下request的get会报ssl error然后直接退出。except也不好用。
我的解决方法就是service里面`Restart=always`,`RestartSec=60`。实测下来是能正常认证的。
用request来检测纯属闲的本来还是拿selenium检测的。反正能跑管他呢。