use for get szpt course and option course
Project description
szpt-course-reptile
根据学院班级批量查询深职院全校课表模块,可单独查询选修课表。
安装 & 使用
必备条件
- Chrome
- Chrome Driver
- Python 3.6+
安装
pip install szpt-course-reptile
whl 安装
pip install szpt_course_reptile-0.0.1-py3-none-any.whl
Example
查询所有课表
from szpt_course_base.ClassQuery import ClassQuery, BrowsProcess
college_class_dict = ClassQuery.get_college_class_dict("课表域名")
process = BrowsProcess(college_class_dict, 4, "jw.szpt.edu.cn")
result = process.getCourse()
查询某一个学院的所有班级课表
from szpt_course_base.ClassQuery import ClassQuery, BrowsProcess
college_class_dict = ClassQuery.get_college_class_dict("课表域名")
process = BrowsProcess({"人工智能学院" : college_class_dict["人工智能学院"]}, 4, "课表域名")
result = process.getCourse()
选修课查询
具有一个可选保存识别成功的验证码参数 save_verify_img_path
course = CourseOptions(API_KEY='百度开放平台API—KEY', Secret_Key='百度开放平台Secret_Key',
host_name='课表域名')
course.login("you number", "you password")
option_course = course.getOptionsCourse()
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
szpt_course_reptile-0.0.5.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for szpt_course_reptile-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64143d0eb35acc46b95730c7e1d45176f7ed3914441d32e07fd2cf443090a8f5 |
|
MD5 | 73bcb4342587cd8cc5fa1f223015b1db |
|
BLAKE2b-256 | aa5244bb3e1b47e57b7b488ff8d55f644d1d775113d7be4addf793c47fcc30d1 |
Close
Hashes for szpt_course_reptile-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51b967217835669dcd18c0d7a5fdf9474629d23a53a4dacd477b37584b550df7 |
|
MD5 | b59456dce4c204da3cc7cc59f307acd8 |
|
BLAKE2b-256 | b36190b231af0eb099a3f5309d077215dd2ad56f0499d9c13497ed32d49f374f |