北京理工大学统一身份验证登录模块
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.1.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.1.tar.gz.
File metadata
- Download URL: bit_login-1.0.1.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 |
2dc40db577e6bc5972e43b62b5906dc15389ce9189ea4eecc5e018e8c3d03713
|
|
| MD5 |
edfcc0353b743ecf171d82652ea6f3b8
|
|
| BLAKE2b-256 |
a622e155d03a48d344afc923a38161d72b12685f7090a822434e9cf6ce497982
|
File details
Details for the file bit_login-1.0.1-py3-none-any.whl.
File metadata
- Download URL: bit_login-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 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 |
4049bccfaf74f35f370fec14f94e4575ad49db888139cc07e76571239dddd22f
|
|
| MD5 |
cba4c1f014afbfb65591fe836133de2d
|
|
| BLAKE2b-256 |
5233535c6df6a8a633c6659282aad1aa9e33648062464b61a48fc0639a576b1d
|