/AutoHealthCard

Primary LanguageJavaScriptMIT LicenseMIT

AutoHealthCard

auto_health_card Packagist

吉珠自动填写健康卡

Usage:

Method 1:

  1. Create a new repository
  2. Copy the .github directory to your own repository
  3. Set the Secrets

Method 2 (Recommended):

  1. Fork this repository
  2. In your forked repository
  3. Set the Secrets
  4. Configure Pull to update your repository whenever upstream updates.

The action will automatically run at 10 and 11am(GMT+8) everyday.

Secrets

name description necessary
SCKEY server酱 ✖️
USERNAME ✔️
PASSWORD ✔️
RANGE student id range
set will start request mode
examples:
04181101:04181120
support multiple ranges
04181101:04181110,04182201:04182215
support single student id
04181101,04181102,04181103
support mixed single student id and range
04181101:04181110,04181115,04181216:04181220
✖️
LIMIT concurrence limit
default value is 1
✖️
DATE_RANGE date range
set the date range that will be specified for request mode
examples:
2021-01-01:2021-01-10
support multiple ranges
2021-01-01:2021-01-05,2021-01-10:2021-01-15
support single date
2021-01-01,2021-01-03,2021-01-06
support mixed single date and range
2021-01-01:2021-01-05,2021-01-07,2021-01-15:2021-01-20
✖️

This repository has two different mode scripts that sign-in, one is browser mode and the other is request mode.

Set USERNAME and PASSWORD will run browser mode by default.

Continuing to set RANGE and LIMIT will enable request mode.