Skip to content

twinhorse/SEU_Web_Login

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

SEU_Web_Login

This program is a python implement for CLI (command-line interface) web login in Southeast University (China). The whole script is based on httplib and json (I also add a fuction based on requests lib, which need extra package). The login and logout fuctions are based on portal.js (login and logout javascript) on w.seu.edu.cn.

Usage:

You need to fill your username and password first. Then just excute it with params.

python seu_weblogin.py [login | logout | status | help]

-login:
Login by https. Print ip address.

-logout:
Logout by https.

-status:
Print login time, login location and login ip address. Time format 12:12:12(h:m:s).

Although other methods in linux is more easier, e.g. crul, this program provide the possibility of network authentication (for SEU web login and logout) in python projects. Hoping it will help you.

For More Information:

http://w.seu.edu.cn

Feedback:

[email protected]

About

SEU_Web_Login

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published