A python script for BUPT login
You can either directly use this script or pack your username and password
pairs into profiles and put them in one configuration file, which useually
~/.tri_bupt_login.json or ~/.dot/tri_config.json.
- Execute the command:
login.py [in|out]
- Enter your username and password when the prompt pop up.
-
Create a configuration file either located at
~/.tri_bupt_login.jsonor~/.dot/tri_config.json. -
Add contents as below, if you want this script to corporate with other tri series script, please merge the content according to the json format.
{
"Applications": {
"tri-bupt-login": {
"default": {
"username": "xxxxxxx",
"password": "*******"
},
"profile1": {
"username": "xxxxxxx",
"password": "*******"
}
}
}
}
- Execute the command, if you do not designate any configuration profile, the
defaultprofile will be invoked. Similarly, if there is nodefaultprofile, a message will be reported.
login.py [in|out] [profile_name]
