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
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 details)
Built Distribution
xzitaao-0.0.5-py3-none-any.whl
(10.3 kB
view details)
File details
Details for the file xzitaao-0.0.5.tar.gz
.
File metadata
- Download URL: xzitaao-0.0.5.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3459548b95db76924a1f191fe26b8221c93baaabbe288aa73799989d83c022d4 |
|
MD5 | 5b92e3d484e574f9a6722e03b4650f0c |
|
BLAKE2b-256 | dfde9501b2463fca9d535fe3f8d9f3b972c74d9f4e70e053d0c5c1db808e1c83 |
File details
Details for the file xzitaao-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: xzitaao-0.0.5-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46a90020ef73e5a01d8bd8c447d6500aab4617a6c6a6b5bf08be91d27b67c92e |
|
MD5 | cfd05418093d7c99774d5cf88c8e25dd |
|
BLAKE2b-256 | 226159da73abb200c73add9941431b6d043a5c0dcb86dcb2c43f1c30236e9d11 |