Skip to content

simei2k/bbdc-booking-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Tcl 61.0%
  • C 31.4%
  • GSC 3.6%
  • Makefile 1.7%
  • C++ 1.3%
  • Python 0.5%
  • Other 0.5%