Giter VIP home page Giter VIP logo

lessons-robber's Introduction

CUMT多线程公选课抢课脚本

免责声明

  • 作者本人已修够所需公选学分,开源此程序只为技术交流,无任何盈利行为

  • 请勿将此程序用于恶意抢课盈利行为,恶意黄牛行为造成的后果本人概不负责

  • 下载并使用本仓库程序则代表您自愿承担一切责任

  • 如您对此免责声明有异议或出于某种原因不愿遵守,请勿使用本程序


NOTICE!!!

2019/1/8 Add co-routine asynchronous I/O version, it has better performance with fewer resource (35 times per second)

2019/1/9 已验证具有不同年级不同专业的普适性,可放心使用

抢课有几率出现课程代号错误,请查验课程代号,如果您确保课程代号无误,那么是教务系统CookieBug,请使用浏览器手动登录一次教务系统,再运行程序抢课

Demo


How To Use

  • 安装依赖包:pip install -r requirements.txt

  • 修改config.json,填入教务系统用户名,密码,与欲选课程代号, e.g.

  • 启动程序

Status Code

  • INFO中的请求成功指请求服务器成功并接收响应成功,正常状态下会一直看到请求成功异常

  • 解释状态码:

    • 1,6D410DC519E6029AE053C0A86D5CEAA6,100,0为课程无余量

    • 其余状态码都是中文如课程时间冲突


持续监控

对于无余量的课程,可以挂在电脑上,持续监控,大概是这样的画面

如果有服务器可以使用nohup指令挂载到服务器上,nohup ./rob.py&


P.s. 部分post变量代号还不清楚,程序可能不具有不同学院不同年级的普适性。如有疑问,请联系[email protected]


2018/7/8 16.26 长时间监控时Cookie过期问题已修复

2018/7/8 20.34 发现校园网及移动宽带会出现获取课程信息失败,服务器会返回400 Bad Request(大概是玄学),CSDN上有同样的问题,可能是ISP线路问题导致丢包

2018/7/8 23.58 已打包成exe文件,使用时将config.json与rob.exe放于同一文件夹下,启动exe文件即可

lessons-robber's People

Contributors

eddieivan01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lessons-robber's Issues

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.