北京理工大学统一身份验证登录模块
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.1.1.tar.gz
(5.2 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.1.1.tar.gz.
File metadata
- Download URL: bit_login-1.1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27a99e1520240917e0182fc87fe66bd083a4957b1f998bdcadde94ccc5f41d10
|
|
| MD5 |
937dd146ec19c2dcbd20c81828385018
|
|
| BLAKE2b-256 |
daebd2f137a4a8de37c19626cc4dbf8a7f3009b1afc20ad6dcd56dd3ebf37119
|
File details
Details for the file bit_login-1.1.1-py3-none-any.whl.
File metadata
- Download URL: bit_login-1.1.1-py3-none-any.whl
- Upload date:
- Size: 8.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 |
4b582ef2d8301a6bb1853045ea81e1d17b967f45ee6c1857cc1d71ff41b78024
|
|
| MD5 |
fbfcb23077e3d0d31b20fc67e76a6e4d
|
|
| BLAKE2b-256 |
9e5b149e6c962bb538477d26526a9e590545c0bbd35dcb8958e68a49bd0438a7
|