Skip to content

svenskan/provbokning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Provbokning

Installation

  1. Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install Python 3:
brew install python3
  1. Install Google Chrome. If the browser is already installed, update to the latest version (open chrome://settings/help in Chrome).

  2. Clone this repository in some folder, such as Downloads:

cd ~/Downloads
git clone https://github.com/svenskan/provbokning.git
  1. Install Python packages:
cd ~/Downloads/provbokning
pip3 install -r requirements.txt
  1. 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 (open chrome://settings/help in Chrome). After unpacking, there should be a file called chromedriver directly in provbokning, not in a subfolder called chromedriver.

Usage

  1. Open and fill out config.py.

  2. 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
  1. 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages

  • Python 100.0%