https://github.com/lizzzcai/bbdc-booking-bot
Bot to check the available slots in BBDC, and send a notification to your phone.
https://github.com/lizzzcai/bbdc-booking-bot
bbdc driving singapore telegram-bot
Last synced: 10 months ago
JSON representation
Bot to check the available slots in BBDC, and send a notification to your phone.
- Host: GitHub
- URL: https://github.com/lizzzcai/bbdc-booking-bot
- Owner: lizzzcai
- Created: 2021-10-06T14:02:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T04:14:23.000Z (about 3 years ago)
- Last Synced: 2025-04-03T20:37:18.436Z (about 1 year ago)
- Topics: bbdc, driving, singapore, telegram-bot
- Language: Python
- Homepage:
- Size: 114 KB
- Stars: 9
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.

# Note
* **2023 April**: The program is not working with the [new BBDC page](https://booking.bbdc.sg/) (find details [here](https://github.com/lizzzcai/bbdc-booking-bot/issues/1#issuecomment-1501359385))
# Prerequisites
* Python3
* [Docker](https://docs.docker.com/get-docker/) (headless Chrome)
* [Telegram Bot](https://t.me/botfather)
# Setup
## Pull docker image of Chrome
```sh
$ docker pull selenium/standalone-chrome:94.0
```
## Clone the repo
```sh
$ git clone https://github.com/lizzzcai/bbdc-booking-bot.git
$ cd bbdc-booking-bot
```
## Create virtual environment and source the environment
```sh
# create virtual environment
$ python3 -m venv env
# activate the environment
$ source env/bin/activate
```
## Install dependencies
```sh
$ pip install -r requirement.txt
```
## Create your telegram bot
Follow this [post](https://dev.to/rizkyrajitha/get-notifications-with-telegram-bot-537l) 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
```sh
$ docker run --rm -d -p 4444:4444 --shm-size=2g selenium/standalone-chrome:94.0
```
## Run the program
```sh
$ python3 main.py
```
# Reference
* https://github.com/rohit0718/BBDC-Bot
* https://github.com/weimingwill/bbdc-booking
* https://core.telegram.org/bots
* https://dev.to/rizkyrajitha/get-notifications-with-telegram-bot-537l