Skip to main content

北京理工大学统一身份验证登录模块

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bit_login-3.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file bit_login-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: bit_login-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for bit_login-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1466b7bd4b5a07927dd9221d55b3cc0e206c35a1d4137d28bcc9663b9f12c084
MD5 bcb664a7837324256073bb4b6b4f6332
BLAKE2b-256 1fae2dacac4dfe3ca5d3b17f278f4224822f88413297ad5c9ced5a3151c045db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page