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 Distribution

bit_login-1.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

bit_login-1.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file bit_login-1.1.0.tar.gz.

File metadata

  • Download URL: bit_login-1.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for bit_login-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4c454b1f0c571e26cf99d8499a34ed344d8832167188c82bef989bf827b947ac
MD5 b1607f298927a3002208e46aa12ecaf3
BLAKE2b-256 367607b954286dec5a44a7cfe4be5dfd37440b0dd38b6407458bcc729791a61a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bit_login-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for bit_login-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89e2e29d3f378b4e9ec112290cd82b97ac75ce010b8b50451fd8e06538db06a4
MD5 d809f84e238cf3f81a88760f2a1dbb5f
BLAKE2b-256 ba342597528ee1a50f18c46e393b0ea3df803341d614747d5a05fff3caa096f4

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