实现ChinaUnicom wifi登陆和实时断线检测重连,解决了网页登陆频繁掉线的问题 适合Windows和Linux
需要httplib2或requests库,安装请访问:
httplib2:
https://pypi.python.org/pypi/httplib2
requests:
http://docs.python-requests.org/en/latest/user/install/#install
访问或通过wget下载https://github.com/laike9m/CU_login/blob/master/src/login.py
注意:根据Python版本不同请选择下载合适的文件
执行python login.py或python3.3 login.py即可(在windows下如果把python.exe关联了.py文件,直接双击即可)
弹出的窗口一直放着不管就好,每10s会检测一次当前状态.如果已经登录,关掉也可以,但就不能及时检测重连了.
Use it to login to ChinaUnicom wifi using your ChinaUnicom account. it will re-login as soon as ChinaUnicom wifi log you out, solve the problem once and for all. Windows and Linux compliant.
httplib2 or httplib2 are required.Visit the listed sites to install.
httplib2:
https://pypi.python.org/pypi/httplib2
requests:
http://docs.python-requests.org/en/latest/user/install/#install
Then download the file https://github.com/laike9m/CU_login/blob/master/src/login.py,
you can download it directly or using wget.
Note: download the file corresponding to your Python version
Finally, run python login.py or python3.3 login.py in Windows and Linux, or just dbclick the file if you are
using Windows.
You will just ignore the python.exe window, it will detect the current login state every 10s. You can close the window after logining, which will disable subsequent detection and re-login.