用于中山大学珠海校区羽毛球场的预定
Project description
说明
此脚本专用于中山大学珠海校区羽毛球场的预定,理论上更改文件中的部分参数可实现预定其他场地,请自行测试
使用步骤
安装
python -m pip install --upgrade sysubadminton
修改配置文件
新建 config.ini,填入想要的配置,以及用户名和密码
[badminton]
; 下面写入希望预定的场地,按顺序进行预定,如 1, 2, 3
stock_name = 7, 8, 6, 9, 4, 3, 2, 1, 5
; 下面写入需要预定的时间,按顺序进行预定,如希望预定 16-17, 17-18 时,写入 16, 17
stock_time = 19, 20, 18, 17
; 下面写入预定的日期,如 2020-12-04,留空为程序运行日期的后天(T+2),通常留空即可
stock_date =
; 下面写入预定的顺序,如果优先满足场地,即尽可能订同一场地的不同时间段,则输入 name
; 如果优先满足时间,即尽可能订同一时间段的不同场地,则输入 time
first = name
; 下面写入每个时间段需要的场地数,默认不限制
stock_number = 99
netid =
password =
运行脚本
badminton config.ini
查看完整指令
badminton -h
可自行指定开始预订时间等。
验证码识别顺利的话即可自动登录,到时间订场。
PS. 此脚本目测可以实现晚上打开,早上自动订场,Linux 下可配合 screen 使用。如果对验证码自动识别放心的话,可以设置定时任务运行。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sysubadminton-0.4.0.tar.gz
(8.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sysubadminton-0.4.0.tar.gz.
File metadata
- Download URL: sysubadminton-0.4.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
799b4088ea82e2006d7496c623516e70b79ea7d7838ea1a0d3f1c3a708f445a0
|
|
| MD5 |
bfa36768f7c49da0f02aca0ac33b47d4
|
|
| BLAKE2b-256 |
c2abb5231405934c2220f167cb58f7ac957e104067cbb602bcf6c56052946957
|
File details
Details for the file sysubadminton-0.4.0-py3-none-any.whl.
File metadata
- Download URL: sysubadminton-0.4.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a26edd26cfd22d7a6e7978d4c44b88069210f9905a6119a38da3607f49b8ff00
|
|
| MD5 |
ec6c06f29cf450baf945ab207f38417e
|
|
| BLAKE2b-256 |
26281207e95660deb76526ec3a6d21cc2aee4add326fce360ee836b973a96a82
|