Sign inSign up

pfuenzle/impf-bot

By pfuenzle

•Updated over 5 years ago

Dockercontainer for https://github.com/TobseF/impf-bot

Image
0

3.4K

pfuenzle/impf-bot repository overview

Searches the official "ImpfterminService - Der Patientenservice 116117" for free Corona vaccination slots. It can search multiple locations at once which can be provided in a list. When it finds a free slot, it can use Slack to send you a message. All timings can be configured for your needs and to avoid blocking.

Impf-Bot created by TobseF: Official Repo⁠

⁠Starting

You first have to create the file "config.properties" in your current working directory with foillowing template:


mainPageUrl = https://www.impfterminservice.de/impftermine
# Comma separated list of locations. 
# Optional, if you already have a placement code, just add it in square brackets after the place 
locations = 69124 Heidelberg[XXXX-XXXX-XXXX],76137 Karlsruhe

# Waiting time before checking the next location in seconds [s]
waitingTime = 120
# Waiting time for a manual user interaction in minutes [m]
waitingTimeForUserAction = 15
# Waiting time in Waiting Room in minutes [m]
waitingTimeInWaitingRoom = 15
# Timeout when searching an element on the page in seconds [s]
searchElementTimeout = 16
# Explicit waiting time for browser updates in seconds [s]
waitingTimeForBrowser = 2

# Your age. Used in age verification field.
personAge = 42

# Settings for the request page. Only needed if you set `sendRequest = true`  
sendRequest = true
email = [email protected]
# Mobile number for sms verification. Numbers after the "+49"
mobileNumber = 152123123123

# Chrome Driver
pathDriver = /app
nameDriver = webdriver.chrome.driver
exeDriver = chromedriver

# Enabled the slack messages
slackEnabled = false
# These can be skipped, if Slack is `slackEnabled = false`
slackBotApiToken = xoxb-123123123-123123123123123123123123123
slackBotChannel = #random

Now you can change everything to your liking, except the Chrome Driver options, which are set for this container. For more info on running the tool itself, please refer to the official repo⁠.

If you have an already existing config, you can use it by copying it to your current directory and replacing the existing Chromedriver Options with


# Chrome Driver
pathDriver = /app
nameDriver = webdriver.chrome.driver
exeDriver = chromedriver

Now your have two ways of running the container:

⁠docker-compose:


---
version: "3"
services:
    impf-bot:
        image: impf-bot
        container_name: impf-bot
        volumes:
            - ./config.properties:/app/src/main/resources/config.properties
        restart: unless-stopped

⁠Commandline


docker run --name impf-bot -d -v $PWD/config.properties:/app/src/main/resources/config.properties pfuenzle/impf-bot

Both options spawn a Docker container with the name "impf-bot".

To access the logs of the container execute docker logs impf-bot

To stop the container execute docker stop impf-bot && docker rm impf-bot

Tag summary

Content type

Image

Digest

Size

1.2 GB

Last updated

over 5 years ago

docker pull pfuenzle/impf-bot