Skip to content

heyfey/nthu-badminton-book

Repository files navigation

nthu-badminton-book

How it works?

Read settings -> Wait until tomorrow 0:00 a.m. -> Book sessions on latest available day of the week, e.g., Book Thursday's sessions on Sunday 0:00 a.m.

Usage

  1. Config ID, password and sessions to book in settings.json.
{
    "id": "108067414",
    "password": "password",
    "sessions": {
        "Sunday": [],
        "Monday": [],
        "Tuesday": [],
        "Wednesday": [],
        "Thursday": [
            "20:00",
            "21:00"
        ],
        "Friday": [],
        "Saturday": []
    }
}

Note: Each ID can book at most two sessions each day of the week

  1. python book.py

Pack to .exe

pyinstaller -F book.py

Win10 Scheduled Task

  1. 工作排程器

  1. 建立基本工作

Make sure chromedriver.exe, extension_1_2_0_0.crx and settings.json are in your 開始位置

About

Script to make reservations for NTHU badminton courts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages