Metadata-Version: 2.1
Name: bit_login
Version: 1.1.2
Summary: 北京理工大学统一身份验证登录模块
Home-page: https://github.com/yht0511/bit-login
Author: teclab
Author-email: admin@teclab.org.cn
Project-URL: Bug Reports, https://github.com/yht0511/bit-login/issues
Project-URL: Source, https://github.com/yht0511/bit-login
Keywords: BIT,BITCAS,BITLogin,BITWebVPN,BITSSO,BITSSOLogin,BITSSOClient
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.0
Requires-Dist: beautifulsoup4>=4.9.0
Requires-Dist: pycryptodome>=3.15.0
Requires-Dist: lxml

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

# 食用方法

登录webvpn:
```python
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"
# }
```
登录其他网站(如延河课堂):
```python
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
# ...
```

# 参考仓库

+ https://github.com/BIT101-dev/BIT101-GO
+ https://github.com/BIT101-dev/BIT101
