Bot to automatically find and book an appointment for renewal/creation of a Swedish passport or national identity card.
Bott som automatiskt söker och bokar första lediga tid för att förnya pass eller nationellt id kort.
The bot searches for available appointments until one is found, it then tries to book the appointment. The bot will run until an appointment is successfully booked.
The bot can be configured to search for appointments in a specific region & in one or more cities at a time.
It can also be configured to run several concurrent booking sessions in order to increase searching speed & search multiple locations at the same time.
Download config.json
& passport-appointment-bot
for your OS from the latest release, place them in the same folder.
- Edit the configuration file you downloaded (
config.json
) with text editor of choice, see Configuration - Run the executable you downloaded
passport-appointment-bot
- The bot will automatically exit when an appointment is booked
- A booking confirmation should be sent to the configured email and will also be displayed in the program
Requires Nodejs (Tested on v17.7.1)
- Clone the project, install dependencies with
npm install
- Edit configuration values in
config.json
, see Configuration - Run the bot with
npm start
- The bot will automatically exit when an appointment is booked
- A booking confirmation should be sent to the configured email and will also be displayed in the console
All options are required
Option | Description |
---|---|
region | Desired region, see Supported Regions & Locations |
locations | One or more cities/locations, see Supported Regions & Locations |
max_date | Last date to search for appointment (will search all days in the week of the specified date) |
Your email (confirmation email will be sent to this address) | |
phone | Your phone number |
firstname | Your first name, or several firstnames if booking for more than one person e.g. (["John", "Jane"]) |
lastname | Your last name, or several lastnames if booking for more than one person e.g. (["Doe", "Doe"]) |
passport | Set to true if the booking appointment is for passport, else false . |
id | Set to true if the booking appointment is for national identity card, else false . |
sessions | Number of concurrent booking sessions to run, higher number equals faster checking of available times and opens up for checking several locations in parallel, (will still only book one appointment in the end) (max 6) |
throttle | Add a timeout (in seconds) between searches |
- Only one appointment can be booked per email and phone number.
- Both passport & national identity card can be renewed in one appointment, both options can therefore be set to true.
- Searching for appointment for more than one person at a time requires a longer appointment time and are thus harder to find.
- A maximum of 8 people can be booked in one appointment
- Pass-fur-alle - Python & Selenium solution by @jonkpirateboy
- passport_booker_se - Python based solution by @elias123tre
Supported regions & locations can also be found in the src/locations.js
file.
- Karlshamn
- Karlskrona
- Avesta
- Borlänge
- Ludvika
- Mora
- Visby
- Bollnäs
- Gävle
- Hudiksvall
- Falkenberg
- Halmstad
- Kungsbacka
- Varberg
- Funäsdalen
- Strömsund
- Sveg
- Åre
- Östersund
- Eksjö
- Jönköping
- Värnamo
- Kalmar
- Oskarshamn
- Västervik
- Ljungby
- Växjö
- Älmhult
- Arvidsjaur
- Boden
- Gällivare
- Haparanda
- Kalix
- Kiruna
- Luleå
- Piteå
- Eslöv
- Helsingborg
- Hässleholm
- Klippan
- Kristianstad
- Landskrona
- Lund
- Malmö
- Trelleborg
- Ystad
- Ängelholm
- Flemingsberg
- Globen
- Haninge
- Järva
- Nacka
- Norrtälje
- Sollentuna
- Solna
- Sthlm City
- Södertälje
- Södra Roslagen
- Eskilstuna
- Katrineholm
- Nyköping
- Skavsta
- Strängnäs
- Enköping
- Tierp
- Uppsala
- Östhammar
- Arvika
- Karlstad
- Kristinehamn
- Torsby
- Lycksele
- Skellefteå
- Storuman
- Umeå
- Vilhelmina
- Härnösand
- Kramfors
- Sollefteå
- Sundsvall
- Ånge
- Örnsköldsvik
- Fagersta
- Köping
- Sala
- Västerås
- Alingsås
- Borås
- Falköping
- Göteborg
- Lidköping
- Mariestad
- Mark/Kinna
- Mölndal
- Skövde
- Stenungsund
- Strömstad
- Trollhättan
- Uddevalla
- Ulricehamn
- Åmål
- Hallsberg
- Karlskoga
- Lindesberg
- Vivalla
- Örebro
- Linköping
- Motala
- Norrköping