北京理工大学统一身份验证登录模块
Project description
北京理工大学统一身份验证登录模块
食用方法
登录webvpn:
login_client = login.login()
# 替换为您的用户名和密码
username = "your_username"
password = "your_password"
# 登录并获取数据
data = login_client.login(username, password)
# 数据格式
# {
# "cookie_json": {
# "name1": "value1",
# "name2": "value2"
# },
# "cookie": "cookie_string"
# }
登录其他网站(如延河课堂):
login_client = login.login()
# 替换为您的用户名和密码
username = "your_username"
password = "your_password"
# 登录并获取数据
data = login_client.login(username, password,callback_url="https://cbiz.yanhekt.cn/v1/cas/callback")
# 数据格式
# {
# "cookie_json": {
# "name1": "value1",
# "name2": "value2"
# },
# "cookie": "cookie_string",
# "callback": "callback location url"
# }
# 下一步:通过回调获取延河课堂的token
# ...
参考仓库
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bit_login-1.0.3.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bit_login-1.0.3.tar.gz.
File metadata
- Download URL: bit_login-1.0.3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb786804843606c9db4319f30cb64194121e27c3aaa1164b6a1ddc06388d5e7d
|
|
| MD5 |
040fa50f5301e1618f7068c158e35a37
|
|
| BLAKE2b-256 |
499851f290700284ce206ff6ed000f77f4ed93c51a7d0836fbf837787a87b038
|
File details
Details for the file bit_login-1.0.3-py3-none-any.whl.
File metadata
- Download URL: bit_login-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7af54c521681aed5ee6e956f391cf379e0fb3082f953be3f92a1c647264847e
|
|
| MD5 |
245ec55f7774fbe8eba0f126267b69f7
|
|
| BLAKE2b-256 |
e22fb69f475a9f6c73c14eb0705a8c26da6fca87df763729b80460cd3c67e2f9
|