Giter Site home page Giter Site logo

zafu_jwcinterface's Introduction

Zafu_jwcInterface

About

这是关于浙江农林大学教务处的一个爬虫,用于爬取各个入口下指定学号学生的信息 ##Install

  • 首先这是一个Go项目 必须需要Golang的环境

  • 其次这个项目引入了beego框架 需要安装下beego的框架 beego的安装看这里

  • 接下来就是

    git clone https://github.com/scbizu/Zafu_jwcInterface

  • 依赖库 :

      go get  github.com/scbizu/mahonia
    
      go get gopkg.in/iconv.v1
    
  • cd 到jwc_api下 bee run

##Usage

  • /vrcode: 获取验证码的路由

操作:Get 需要key:stuno

描述:在login界面,用户输入学号后,获取到这个学号,通过Get拼接学号到地址栏 (e.g. /vrcode?stuno=xxxxxx),然后 验证码图片的名称即为 此学号.gif

*/jwc: 提交信息路由

操作:POST Key List: (学号)stuno (密码)password (验证码)vrcode

描述:这里的vrcode 即为请求/vrcode获取的验证码

返回:

true(string)表示登入成功 Failed(string)表示登入失败

  • /exam:获取该学生考试信息的路由

操作:Get

No Key

描述: 在/jwc 返回true之后 再请求此接口即可

返回: JSON数据 (“0”:{ "Class":"xxxx", "Deadline":"xxxx" }...)

  • /course:获取学生课程表

give up

理由:poor regexp regular

  • /score:获取学生成绩

操作:Get

No key

描述: 在/jwc 返回true之后 再请求此接口即可

返回: JSON数据 (“0”:{ "ClassName":"xxx" "Credit":"xxx" "GPA":"xxx" "Score":"xxx" (开课学院)"Academy":"xxx" (补考分数)"ReTest":"xxx" (重修分数)"Rebuild": "xxx" }...)

  • Other interface will be continued....

##About Other 目录下 另外一个 jwclisten目录 是一个不用beego框架的一个简单实现 可用于测试 需要自己完善一下StuNo 和 password

Written in Golang Author:scnace

zafu_jwcinterface's People

Contributors

scbizu avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

zjuchenyuan

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.