- Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install Python 3:
brew install python3
-
Install Google Chrome. If the browser is already installed, update to the latest version (open
chrome://settings/help
in Chrome). -
Clone this repository in some folder, such as
Downloads
:
cd ~/Downloads
git clone https://github.com/svenskan/provbokning.git
- Install Python packages:
cd ~/Downloads/provbokning
pip3 install -r requirements.txt
- Download and unpack the latest version of ChromeDriver in
provbokning
, which was created after cloning. The version of ChromeDriver should match the one of Chrome (openchrome://settings/help
in Chrome). After unpacking, there should be a file calledchromedriver
directly inprovbokning
, not in a subfolder calledchromedriver
.
-
Open and fill out
config.py
. -
Run
bot.py
for reserving a time slot for 15 minutes so you have time to complete the process manually; a sound will be played. During the first execution, macOS might prevent ChromeDriver from running due to security reasons. If this is the case, shut down the script, go to System Preferences, open Security & Privacy, click General, and allow it to run.
cd ~/Downloads/provbokning
PATH="${PATH}:${PWD}" python3 bot.py
- Alternatively, run
bot2.py
for doing everything automatically except for the payment, which will be postponed until later. It will also require a manual authentication via BankID upon start.
cd ~/Downloads/provbokning
PATH="${PATH}:${PWD}" python3 bot2.py