An open API service indexing awesome lists of open source software.

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.

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.

![alt text](banner.jpeg
"banner")

# 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