lizzzcai / bbdc-booking-bot

Bot to check the available slots in BBDC, and send a notification to your phone.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BBDC-Booking-Bot

Program help to check the available slots in BBDC (Bukit Batok Driving Centre), and send notification to your phone by Telegram bot.

alt text

Note

Prerequisites

Setup

Pull docker image of Chrome

$ docker pull selenium/standalone-chrome:94.0

Clone the repo

$ git clone https://github.com/lizzzcai/bbdc-booking-bot.git
$ cd bbdc-booking-bot

Create virtual environment and source the environment

# create virtual environment
$ python3 -m venv env
# activate the environment
$ source env/bin/activate

Install dependencies

$ pip install -r requirement.txt

Create your telegram bot

Follow this post to create your telegram bot

Fill in your information

please fill in the followings in the config.yaml

  • Interval of checking the slots (example: every 5 mins)
  • BBDC username and password
  • Your wanted sessions
  • Telegram Bot token and chat_id

Run the program

Launch Chrome container

$ docker run --rm -d -p 4444:4444 --shm-size=2g selenium/standalone-chrome:94.0

Run the program

$ python3 main.py

Reference

About

Bot to check the available slots in BBDC, and send a notification to your phone.


Languages

Language:Python 100.0%