Skip to content

lai2301/ICBC_appointment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please note that this repo is going to be on hold. As my partner already got the appointment.

Description/ Usage

Scrap Appointment from ICBC

Prerequisites

  • k6
  • chrome

Run locally

# With browser
K6_BROWSER_HEADLESS=false k6 run --quiet --console-output=stdout LAST_NAME=Bellick -e LICENCE_NUMBER=00123424 -e KEYWORD=Bellick -e LOCATION="Victoria driver licensing" -e TARGET_DATE=2024-12-01 icbc.js

# Without browser
k6 run --quiet --console-output=stdout -e LAST_NAME=Bellick -e LICENCE_NUMBER=00123424 -e KEYWORD=Bellick -e LOCATION="Victoria driver licensing" -e TARGET_DATE=2024-12-01 icbc.js

Run with Docker

docker build -t icbc_appointment .
docker run -e LAST_NAME=Bellick -e LICENCE_NUMBER=00123424 -e KEYWORD=Bellick -e LOCATION="Victoria driver licensing" -e TARGET_DATE=2024-12-01 icbc_appointment

Next Step

  • Add location as variable
  • Add Target Date as variable
  • Make it as a cron job
  • Notify via Telegram/Email
  • Dockerize
  • Maybe - Auto book appointment? Depends on if I can get the appointment after it's available.

FAQ

Q: Why using k6? A: I jsut happen to use k6 to test some API at work. And I also want to try something the browser-based feature. No matter what, it's just a script.

Authors

About

Scrap Appointment from ICBC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors