yushiwho / icbc-appointment-bot

Robot for checking ICBC road test appointment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ICBC Appointment Bot

Robot for checking ICBC road test appointments.

Installation

Use the package manager pip to install dependences.

pip install PyYAML requests

Config

Create the yaml file ./config.yml

icbc:
  drvrLastName: "YOUR_LAST_NAME"
  licenceNumber: "YOUR_LICENCE_NUMBER"
  keyword: "KEYWORD"
  expactAfterDate: "2022-02-01" #YYYY-MM-DD
  expactBeforeDate: "2022-04-01" #YYYY-MM-DD
  expactAfterTime: "09:00" #HH:MM
  expactBeforeTime: "11:30" #HH:MM
  examClass: 5 #5/7
gmail:
  sender_address: "SENDER_EMAIL@gmail.com"
  sender_pass: "YOUR_EMAIL_PASSWORD"
  receiver_address: "RECEIVER_EMAIL@gmail.com"

Usage

For now, it only support getting the appointments in Point Grey

point_grey = {
    "aPosID": 9,
    "examType": examClass+"-R-1",
    "examDate": expactAfterDate,
    "ignoreReserveTime": "false",
    "prfDaysOfWeek": "[0,1,2,3,4,5,6]",
    "prfPartsOfDay": "[0,1]",
    "lastName": lastName,
    "licenseNumber": licenceNumber
}

Locations

Location posID
Richmond claim centre (Elmbridge Way) 273
Richmond driver licensing (Lansdowne Centre mall) 93
Vancouver driver licensing (Point Grey) 9
Vancouver claim centre (Kingsway) 275
Burnaby claim centre (Wayburne Drive) 274
Surrey driver licensing 11
Newton claim centre (68 Avenue) 271
Surrey claim centre (152A St.) 269
North Vancouver driver licensing 8

Contributing

Feel free to contribute.

  1. Able to change location (Now: only Point Grey)
  2. Able to choose Day of week

About

Robot for checking ICBC road test appointment

License:Apache License 2.0


Languages

Language:Python 100.0%