Skip to main content

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


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 details)

Uploaded Source

Built Distribution

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

szpt_course_reptile-0.0.5-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file szpt_course_reptile-0.0.5.tar.gz.

File metadata

  • Download URL: szpt_course_reptile-0.0.5.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for szpt_course_reptile-0.0.5.tar.gz
Algorithm Hash digest
SHA256 64143d0eb35acc46b95730c7e1d45176f7ed3914441d32e07fd2cf443090a8f5
MD5 73bcb4342587cd8cc5fa1f223015b1db
BLAKE2b-256 aa5244bb3e1b47e57b7b488ff8d55f644d1d775113d7be4addf793c47fcc30d1

See more details on using hashes here.

File details

Details for the file szpt_course_reptile-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: szpt_course_reptile-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for szpt_course_reptile-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 51b967217835669dcd18c0d7a5fdf9474629d23a53a4dacd477b37584b550df7
MD5 b59456dce4c204da3cc7cc59f307acd8
BLAKE2b-256 b36190b231af0eb099a3f5309d077215dd2ad56f0499d9c13497ed32d49f374f

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