Git Product home page Git Product logo

select_seats's Introduction

Select_Seats

As we know, reservation can be made in advance and new seats will be opened at 22:00 every night. But when the time is coming, we can be really hard to sign in the reservation system because all people wanna get into it and select a more comfortable seat. Unfortunately, the system does not getting enough optimization so that their carrying capacity does not allow so many students to use the system at the same time. That is the main reason why I write the automated script.
One the one hand, using the script can reduce personal unnecessary operations to lower the pressures on the server. On the other hand, we can liberate our time to do more stuff like studying. The script can help us choose the seat we want accurately and efficiently with greater possibilities(nearly 100% unless other student use the script and pick the same seat).

Environment

Python
requests
logging
(All in the last version)

Parameter Setting

"number":"******", //学号
"password":"
", //登录密码
"date":"today", //选座日期,默认日期为次日,当参数为"today"时,选择当日的座位
"beginTime":10, //开始时间
"duration":12, //学习时长
"studyroom":"2n", //选择自习室(3楼南:"3S"或"3s",3楼北:"3N"或"3n",2楼南:"2S"或"2s",2楼北:"2N"或"2n")
"seat":"100", //选择座位,选择的座位没选上可就近匹配
"distinct":12 //优先选择座位距离seat的距离

Usage

After you built your environment and fill your information into setting.json with the same format, cd to the folder you store the files, and input the command in terminal

python select_seats.py setting.json
You can build a task schedule to run it before 22:00 everyday.

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.