coffeehat / bit-srun-login-script Goto Github PK
View Code? Open in Web Editor NEW北京理工大学深澜校园网登录脚本,以实现命令行登录或者断线重连等,仅提供登录功能
License: MIT License
北京理工大学深澜校园网登录脚本,以实现命令行登录或者断线重连等,仅提供登录功能
License: MIT License
还没有能力提交PR,只能来提issue了
Step3: Loggin and resolve response.
Begin to send login info
Login info send successfully
Resolving login result
Cannot resolve login result. Maybe the srun response format is changed
Traceback (most recent call last):
File "demo.py", line 6, in
password = "xxxxxxxxxx"
File "C:\Users\xxxxxx\Desktop\BIT\BitSrunLogin\LoginManager.py", line 44, in login
self.get_login_responce()
File "C:\Users\xxxxxx\Desktop\BIT\BitSrunLogin\LoginManager.py", line 62, in get_login_responce
self._resolve_login_responce()
File "C:\Users\xxxxxx\Desktop\BIT\BitSrunLogin_decorators.py", line 14, in wrapper
return func(self, *args, **kwargs)
File "C:\Users\xxxxxx\Desktop\BIT\BitSrunLogin_decorators.py", line 32, in wrapper
outputs = func(self, args, **kwargs)
File "C:\Users\xxxxxx\Desktop\BIT\BitSrunLogin\LoginManager.py", line 209, in _resolve_login_responce
self._login_result = re.search('"suc_msg":"(.?)"', self._login_responce.text).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
之前一直使用的这个脚本,放在刷了openwrt的路由器上,通电即上网。但是需要在路由器上安装python环境。Go版可以直接编译出相应架构的程序放在外部存储器,从而节约路由器空间。
后来我的新固件超出容量……
File "/tmp/net/BitSrunLogin/LoginManager.py", line 92, in _resolve_ip_from_login_page
self.ip = re.search('name="user_ip" value="(.*?)"', self._page_response.text).group(1)
这个咋解决呀,大佬
AttributeError: 'NoneType' object has no attribute 'group'
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.