Giter Site home page Giter Site logo

hitautobooking's Introduction

HIT 自动预约游泳馆等资源

github地址:https://github.com/xrervip/HITAutoBooking

如何使用

依赖于python运行环境+chorme+selenium+ chromedriver驱动

  1. 安装python3,并:

    pip install selenium argparse logging
    
  2. 安装Chorme浏览器

  3. 下载安装chromedriver并添加到Path。chormedriver 镜像地址: https://npm.taobao.org/mirrors/chromedriver/

  4. 定时启动python脚本

参数格式:

usage: AutoBooking.py [-h] [-t] [--today] [-v] [-l LOG] [--threads THREADS] [--debug] [--headless] [--nowait] id pw {游泳馆,羽毛球正心} timeFlag

HIT 资源自动预约脚本

positional arguments:
  id                 学号
  pw                 密码
  {游泳馆,羽毛球正心}        运动场馆
  timeFlag           预约时间段代号

optional arguments:
  -h, --help         show this help message and exit
  -t, --test         仅输出信息,不进行预约
  --today            预约今天,否则都是预约明天
  -v, --verbose      详细输出
  -l LOG, --log LOG  日志文件路径
  --threads THREADS  并行线程数
  --debug            debug flag
  --headless         debug flag
  --nowait           debug flag

时间段代号

A\B\C\D 对应预约界面时间段的第1\2\3\4段,比如A对应游泳馆的06:00 - 08:00时间段,在前的代号会被优先预约

案例:

python3 AutoBooking.py 21S123456 passwd 羽毛球正心 EABCD

开源许可证

AGPL-3.0

简单来说,建议您做到以下几点:

  • 任何基于或与本项目有间接接触的项目均使用AGPL-3.0协议
  • 当你使用本项目或对其修改时,如果你所服务的对象向您索要源代码,请不要拒绝
  • 请不要将本项目用于商业用途

免责声明

本项目仅供学习交流,严禁用于商业用途,按照LICENSE,开发者不对本工具的使用负责。

hitautobooking's People

Contributors

beforelight avatar f2quantum avatar

Stargazers

 avatar

Watchers

James Cloos 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.