Git Product home page Git Product logo

njupt-api's Introduction

NJUPT-API 简介

NJUPT-API 的初衷是希望为NJUPT的各个系统提供一套跨系统的简洁、优雅的、Pythonic的API接口,以便用户能够在此基础上进行扩展开发。

项目结构受到了开源项目 zhihu-api的启发,在这里对作者@lzjun567表示感谢

欢迎pr

目前实现的功能

正方系统

登录
from njupt import Zhengfang
zhengfang = Zhengfang()

# 验证码自动识别
zhengfang.login('B1xxxxxxx','password')
获取课程成绩和绩点
>>> zhengfang.get_score() 
    {'gpa': 4.99,
    'coursers': [{
        'year': '2015-2016', # 学年
        'semester': '1', # 学期
        'code': '00wk00003', # 课程代码
        'name': '从"愚昧"到"科学"-科学技术简史', # 课程名称
        'attribute': '任选', # 课程性质
        'belong': '全校任选课', # 课程归属
        'credit': '2.0', # 学分
        'point': '', # 绩点
        'score': '81', # 成绩
        'minorMark': '0', # 辅修标记
        'makeUpScore': '', # 辅修标记
        'retakeScore': '', # 重修成绩 
        'college': '网络课程', # 开课学院
        'note': '', # 备注 
        'retakeMark': '0', # 重修标记
        'englishName': '' # 英文名称
        }, 
        ]
    }
获取等级考试信息
>>> zhengfang.get_grade() 
    [
        {
        'date': '20151219',
         'name': '全国大学英语四级考试',
         'number': '320082152113313',
         'score': '547',
         'semester': '1',
         'year': '2015-2016'
        },
        ...
    ]

奥兰系统

登录

from njupt import Aolan
aolan =  Aolan()

# 验证码自动识别
aolan.login('B1xxxxxxx','password')

todos

各种接口。。欢迎pr

njupt-api's People

Contributors

gaoliang avatar sanmumuzi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.