Skip to main content

Crawler for xzit aao

Project description

XZITAAO

本项目是 http://jwc.xzit.edu.cn 的爬虫

非常感谢xrandx将其开源

我现在把它整理出来供大家使用

使用方法

pip install xzitaao

一些说明

student.set_tesseract_dic("D:\\Program Files\\Tesseract-OCR\\tessdata")设置tesseract目录(可选) 如果没有设置,将会显示验证码,你需要自己手动输入

由于教务系统有修改,所以选课功能暂时没法使用

Demo

import xzitaao

Sid = ""  # 学号
Pwd = ""  # 密码
Cid = ""  # 选课的课程号
Tesseract_Dic = "D:\\Program Files\\Tesseract-OCR\\tessdata"

def main():
    student = xzitaao.Student(Sid, Pwd, Cid)
    try:
        student.set_tesseract_dic(Tesseract_Dic)
        student.login()  # 登录
        student.get_info()  # 保存个人信息
        student.save_score()  # 保存成绩单
        student.evaluate()  # 教学评估
        # student.get_elective_course() #选课
    except Exception as e:
        xzitaao.auto_ip()
        print(e)


if __name__ == '__main__':
    main()

已知 Bug

如果你没有设置tesseract目录,验证码图片无法自己关掉,需要手动关

LICENSE

Apache License 2.0

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

xzitaao-0.0.5.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

xzitaao-0.0.5-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page