Skip to content

HalfdogStudio/tri-bupt-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tri-bupt-login

A python script for BUPT login


Dependent library:

  1. Requests

Usage

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.

Directly login

  • Execute the command:
login.py [in|out]
  • Enter your username and password when the prompt pop up.

Usage accompany with configuration file

  • Create a configuration file either located at ~/.tri_bupt_login.json or ~/.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 default profile will be invoked. Similarly, if there is no default profile, a message will be reported.
login.py [in|out] [profile_name]

License

CC License

About

A python script for BUPT login

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages