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.3.tar.gz (5.2 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.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bit_login-1.1.3.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

Hashes for bit_login-1.1.3.tar.gz
Algorithm Hash digest
SHA256 edec192bd515a5baf93e5812768abfd670be4700e745c075548615b8bb7a1459
MD5 11ebd7278f2788ab51f01816c01200bf
BLAKE2b-256 628246053a3cfcf19e98cb46d64ce5b6c2ea7174ff6c11d7ef9ff39844117fce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bit_login-1.1.3-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

Hashes for bit_login-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 04eacd9d7f1215abc086cebeb967f451e4da615bb5a2350493814cccaaa8790a
MD5 adeafc6f9997a8ebdf6da9f83742c695
BLAKE2b-256 e82645826d898cc52a2b4e58087bb8148334ea68de377f68681f8b5899fb55cd

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