dairoot / school-api Goto Github PK
View Code? Open in Web Editor NEW🌱 校园教务系统接口,正方教务系统 SDK for Python
Home Page: https://dairoot.github.io/school-api/
License: MIT License
🌱 校园教务系统接口,正方教务系统 SDK for Python
Home Page: https://dairoot.github.io/school-api/
License: MIT License
client/api/scoce.py 96,97行(附近) 判断补考成绩以及重修成绩处
makeup_score = cells[10].text
retake_score = cells[11].text
makeup_score = cells[14].text
retake_score = cells[15].text
当然,可能是学校不一样导致
Line 7 in aaec718
Collecting School-Api Downloading http://pypi.doubanio.com/packages/02/34/1e35ed122c9706b0c4f174e9b5bfa7d3fc00ca14c4eafde0d5e23cf4801b/School-Api-1.3.6.tar.gz (152kB) Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\****\AppData\Local\Temp\pycharm-packaging\School-Api\setup.py", line 8, in <module> long_description = f.read().split("## User permissions")[0] UnicodeDecodeError: 'gbk' codec can't decode byte 0x82 in position 25: illegal multibyte sequence
请问这种情况应该如何处理,究竟是哪里出现问题呢?
/xsgrxx.aspx?gnmkdm=N121501&xh=51630104
{'error': school_code:None, Error msage: 用户信息接口,获取用户信息失败}
/xskbcx.aspx?gnmkdm=N121603&xh=51630104
<Response [302]>
{'error': school_code:None, Error msage: 课表接口,课表接口已关闭}
f12看我们学习的接口发现还有一个xm字段,然后增加后还是报错,
希望大佬看见能联系我下QQ192907881万分感谢
课表接口:error_message:课表接口,课表接口已关闭
成绩接口同样
经查,教务系统正常
查找到问题所在,在 client/api/score.py 67行 tag = "Datagrid1" if self.use_api != 3 else "DataGrid1",删除if后的代码就可以查到
课表接口相同
{'error': '获取view_state失败'}是我有什么地方没有设置对吗
`from school_api import SchoolClient
school = SchoolClient(url=隐藏下.edu.cn')
student = school.user_login('用户名','密码',timeout=10)
info_data = student.get_info()
print(info_data)`
目前我这边出现的问题是课表中的下午部分的课程没法获取到
请问为什么登录一直是{'error': '验证码获取失败'}啊,学校的验证码地址也是/CheckCode.aspx
当使用redis时,使用一台服务器对多个(测试时两个)账号进行查成绩操作,第一次查询没问题,当使用redis里的cookie再次请求时问题较少,但是第三次请求时,会有较大概率某一个账号的xscjcx.aspx会出现302,较小概率两个同时302,较小概率两个同时正确,请问您觉得问题大概在哪里
你这里虽然处理了
<br/><br/>
但是,解析的结果不对
我校的地址 http://202.115.80.211/default2.aspx#a
我校的成绩接口 http://202.115.80.211/xscjcx.aspx?xh=201711533704&xm=%B6%C5%CE%B0%D2%B5&gnmkdm=N121605
选择的 接口 use_api=3
出现的问题,只有公选课的成绩被查询到,专业课的成绩一律没有
解析出的table中就没有专业课的信息(专业课信息的标签为)
希望楼主大大能够帮忙解决一下这个问题,拜托啦
我猜测可能是请求连接的参数有问题
之前都是自己写的,比较麻烦。现在可以一步到位了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.