Giter Club home page Giter Club logo

badminton_cqu's Introduction

Badminton For CQU

This is a project for CQU Badminton schedule. [Anonymous development]

Install

# python 3.10+ required
pip install -r requirements.txt

Usage

python main.py

config/settings.yaml

users:
  user_name: xxx
route:
  user:
    url: http://huxispce.cqu.edu.cn/api/weixin/auth/login
    type: post
  book:
    url: http://huxispce.cqu.edu.cn/api/field/wechat/fieldReserve/createFieldReserveOrder
    type: post
    body:
      cardId: null
      fieldAreaId: 1704745389682458625
      itemId: "1"
      orderDate: "2024-04-23"
      orderDetailList:
        - beginDate: 2024-04-23
          beginTime: "21:00:00"
          endDate: "2024-04-23"
          endTime: "22:00:00"
          fieldId: "1706485299959431169"
          priceOrig: 12
          pricePay: 12
      orderType: R
      priceOrig: 12
      pricePay: 12
      saleMode: F
      venueId: 1704736567056269314
      voucherNos:
        - null
    return_field: success, data.orderId # return key
  display:
    url: http://huxispce.cqu.edu.cn/api/field/wechat/fieldReserve/getFieldReserveDisplayData
    type: get
    settings:
      time_diff_threshold: 2 # time difference between local time and target time in days

    body:
      venueId: 1704736567056269314
      areaId: 1704745389682458625
      queryDate: 2024-04-23
      isVirtual: F
  cancel:
    url: http://huxispce.cqu.edu.cn/api/weixin/myOrder/cancelOrder
    type: get
    body:
      orderId: null
email:
  email_smtp_server: smtp.qq.com
  email_smtp_port: 587
  email_smtp_username: [email protected]
  email_smtp_password: xxx

Features

2024-04-23

  • regular venue booking
  • terminal gui
  • email notification

2024-04-21

  • start

badminton_cqu's People

Contributors

kiritod 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.