V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
dairoot
V2EX  ›  Python

写了一个正方系统的 SDK

  •  
  •   dairoot ·
    dairoot · 2018-12-03 22:35:09 +08:00 · 1968 次点击
    这是一个创建于 1942 天前的主题,其中的信息可能已经有所发展或是发生改变。

    写了一个正方教务系统 SDK,最近想优化一下多校兼容问题。

    请各位大佬能登陆的,帮忙测试下能否正常使用,并提些建议。

    正方教务系统 SDK Github 地址: https://github.com/dairoot/school-api

    也可以在测试地址测试: http://server.dairoot.cn (勿压)

    目前仅支持旧版教务系统,新版没有账号测试。

    请无法使用 SDK 的,可私聊我发送:外网地址+账号密码,有空我会做下兼容。

    第 1 条附言  ·  2018-12-05 12:44:43 +08:00

    SDK 用法

    pip install School-Api
    
    from school_api import SchoolClient
    
    
    School = SchoolClient(url='http://210.38.137.126:8016')
    student = School.user_login('2014xxxx', 'xxxx', timeout=5)
    schedule_data = student.get_schedule()
    print(schedule_data)
    
    2 条回复    2018-12-04 11:14:21 +08:00
    soha
        1
    soha  
       2018-12-04 09:00:25 +08:00 via Android
    正方这个系统根据学校的不同,在前端的数据的组织方式也可能不同,比较头疼的就是很难通用起来
    dairoot
        2
    dairoot  
    OP
       2018-12-04 11:14:21 +08:00
    @soha 最近就想处理这个问题,你可以正常使用 SDK 不?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5890 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 02:14 · PVG 10:14 · LAX 19:14 · JFK 22:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.