最近有这么个需求,用了几位大佬基于的urlib和request的脚本都出现了假登录的现象,于是乎就基于Selenium写了个脚本实现了一下。
可以参考以下链接进行安装与配置 参考链接
- 间隔10s进行数次ping,若ping不通说明网络已断开,执行
login_func
子函数。 - 在
login_func
中调用selenium.webdriver
获取校园网登录网页信息。 - 通过
find_element_by_id
找到用户名与密码输入框,利用send_keys
输入并登陆。
北理工校园网自动登录脚本
最近有这么个需求,用了几位大佬基于的urlib和request的脚本都出现了假登录的现象,于是乎就基于Selenium写了个脚本实现了一下。
可以参考以下链接进行安装与配置 参考链接
login_func
子函数。login_func
中调用selenium.webdriver
获取校园网登录网页信息。find_element_by_id
找到用户名与密码输入框,利用send_keys
输入并登陆。A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.