hit.edu.cn utils
Project description
hitutil
hitutil 基于 requests,是一个与哈尔滨工业大学网络业务相关的支持库。
ids
统一身份认证相关服务
ids.idslogin() 模拟统一身份认证登陆, 返回一个已登陆的 requests.Session.
from hit import ids
session = ids.idslogin('USERNAME', 'PASSWORD')
session.get('http://jwes.hit.edu.cn/queryWsyyIndex') # 登陆本科生网上服务系统
response = session.get('http://jwes.hit.edu.cn/cjcx/queryQmcj') # 查询成绩
timetable
课表相关服务
from hit import timetable
def main():
print(timetable.parse_to_df(timetable.query_by_gxh('学号', '学期', '''周次,整数'''))) # 学期类似:'2021-2022;1' 表示秋季学期
if __name__ == '__main__':
main()
学期参数说明
| 接口参数 | 对应实际学期 |
|---|---|
| 2020-2021;1 | 2020秋季 |
| 2020-2021;2 | 2021春季 |
| 2020-2021;3 | 2021夏季 |
| 2020-2021;4 | 2021暑假 |
| 2020-2021;5 | 2021寒假 |
| 2021-2022;1 | 2021秋季 |
| ... | ... |
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
hitutil-0.5.0.tar.gz
(5.6 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
hitutil-0.5.0-py3-none-any.whl
(17.6 kB
view details)
File details
Details for the file hitutil-0.5.0.tar.gz.
File metadata
- Download URL: hitutil-0.5.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3df2d662d5f76212bd512c2299158c6c99292f379f7eb68b20445b8e170bd17
|
|
| MD5 |
000edddaf7f1c9f26b329775fbd9d657
|
|
| BLAKE2b-256 |
e014744090bb3e74c078f9496aaeb20b367abf9a576513cb91418b820b9d238f
|
File details
Details for the file hitutil-0.5.0-py3-none-any.whl.
File metadata
- Download URL: hitutil-0.5.0-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56b020864fb11424678910d7b0b7fda6238d8c883866459c2b611f3306b304ad
|
|
| MD5 |
726211c9b12cc7c4dba3b9f1085f9b94
|
|
| BLAKE2b-256 |
0b84da1d9178bc5e668f9ad1934b53088251a352174e86e792edda02b7c5ee5d
|