A cross-platform script to book first available time for getting a passport in Sweden - Ett skript som automatiskt bokar pass hos polisen

Overview

Automatic passport booker - Boka pass automatiskt hos Svenska polisen

A cross-platform script to book first available time for getting a passport in Sweden - Ett skript som automatiskt bokar pass hos polisen

Eftersom polisen fortfarande inte har fixat fler tider för att boka pass så kommer detta skript att hitta den första möjliga tiden att boka pass och reservera den. Dock håller de på att att kontinuerligt uppdatera systemet för att motverka dessa typer av automatiserad program och därför kan det när som helst sluta fungera!

User interface Location user interface

Relaterade/liknande projekt:

How to - Instructions for Windows

Download the program with the button below and open it when it's downloaded (can take a while to download and start)

Download icon

If a Windows protected your PC popup appears, click More info then Run anyway

How to - Manual installation instructions (if use don't use Windows)

Note: beware that on Mac you may need to enable extensive permissions to install python, puppeteer or run the script. I don't have a Mac to test on so if you encounter this, Google the error message and how to solve it.

1. Install python:

a. Open terminal

Windows: type powershell in the search bar (lower left corner) then right click on Windows PowerShell and press Run as administrator

Mac: open the terminal, preferably by typing terminal into the spotlight search bar (upper right corner) then select terminal

b. Check if it is already installed

Windows & mac: type python --version then enter, if it displays a python version starting with 3.7 or grater, continue to step 2

c. If not installed (previous output shows that the command was not found)

Install python from official source: https://www.python.org/downloads/
Check the box for Add Python 3.x to PATH if it appears

If you get stuck on this step, search for how to install python for your operating system

2. Install playwright:

Close the terminal/console from step 1.a. and a new one the same way. Then type the following lines one by one and press enter after each one.

Windows:

$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
python -m pip install --upgrade pip
python -m pip install playwright
playwright install firefox

Mac:

python3 -m pip install --upgrade pip
python3 -m pip install playwright
playwright install firefox

3. Download the script (press CTRL+S to save the file, select Downloads folder)

4. Run the script:

Type the following lines one by one into the new terminal/console that you openend in step 2.

Windows:

cd ~/Downloads
python main.py

Mac:

cd ~/Downloads
python3 main.py

5. Follow onscreen instructions and enter the details about your search

6. Wait for a time to become available, a popup will appear (the page reloads itself in the background to search for new times).

Note: if the booking isn't verified/completed manually (entering personal details) after the popup has appeared, it will be lost after some time due to inactivity

7. Optional: force-quit the script anytime by closing the browser or by pressing CTRL+C in the terminal/console (ignore any errors that appear)

Comments
  • To many Calls - Redirected to secondary landing site

    To many Calls - Redirected to secondary landing site

    Hej.

    Först, tack för ett färdigt verktyg för oss som inte riktigt vet vad vi gör när vi klistrar in kommandon i våra linuxburkar :)

    Körde scriptet ett par gånger nu på kvällen och hamnar straxt på : https://reserv.polisen.se/for-manga-anrop/

    Går det kanske att sänka antalet anrop per sekund för att motverka deras sätt att motverka att vanliga människor ska kunna boka en tid för pass :)

    opened by TherisaHaze 12
  • Not even a beginner... sorry

    Not even a beginner... sorry

    Hello, sorry for disturbing and for asking, I know my way around a computer a bit, but know nothing about programming but am desperate for finding a time for passport... I have installed Python 3.10, I think my computer (win10) has Pip, I have installed Playwright (hopefully correct), I have installed Chromium, I have managed to open your file in VS Code and see the text/coding but I am not doing it correct because nothing more happens... becuause I lack the knowledge...

    Is there any possibility you can help me? The "how to" you have written is probably perfect for someone who knows programming but for me its just not enough. Where should I open the script? In VS Code, in CMD, in Python? Or in Playwright or somewhere else? Maybe just a little more information and if possible - with links to where I can find a good easy way to install what I need.

    Hope for the best Skulle vara oerhört tacksam för hjälp med detta! //Tobias

    opened by umanonearth 9
  • Kanske lägg till root.bell() efter rad 162 när en tid hittats

    Kanske lägg till root.bell() efter rad 162 när en tid hittats

    Tack för ett bra script. Jag lyckades få tre tider till tre barn på tre dagar och på sätt sparades en onödig utflykt 40 mil enkel väg (för exfrun - inte för mig... :) ) till Haparanda där det av outgrundlig anledning fanns tider att boka!

    Men jag lyckades aldrig boka med dialogen som ska poppa upp från scriptet. Antingen såg jag den inte för att den låg bakom något fönster, eller så blev det något fel. Minns att jag bl a såg 'Hittad tid är inte längre tillgänglig' några gånger på konsollen.

    Jag lade i alla fall en root.bell() i koden direkt den hittat en tid för att märka det, och sedan såg jag till att ha datorn nära, och vara på tårna, och när den pep till gick jag manuellt till polisens hemsida och bokade. På så sätt bokade jag tiderna. Tyvärr var jag inte helt fokuserad på att felsöka scriptet, mest på att boka passtider! :)

                    if date < last_date:
                        root.bell()
    
    opened by erikrenberg 4
  • error

    error

    C:\Program Files\Python310\python.exe: can't open file 'C:\Users\MALTE\Downloads\main.py': [Errno 2] No such file or directory

    Får detta error vid sista steget. pls halp

    opened by skajagpangadig 3
  • Bank-id....

    Bank-id....

    Hello again, sorry to bother you again - now they have added bank-id to the equation... is there any possibility you have a look if you can do anything to make it work again like you did earlier? Thinking I can do the same as before for my wife if I ask I take a photo of the screen, email her a picture and ask her to scan the qr-code with her phone and then open her bank-id and accept and then your script can start searching every 25th second... or something like that. Would be highly appreciated if possible :) And thanks for your time.

    opened by umanonearth 2
  • scriptet crashar på rad 167 + fix

    scriptet crashar på rad 167 + fix

    Märkte när jag körde scriptet i helgen att det kraschar på rad 167 när en ledig tid hittas. Kanske för att sidan som visas innehåller tomrader på något sätt på just det passkontor jag söke på. Tyvärr debuggade jag inte så jag vet inte exakt när det händer.

    Jag fixade problemet för att komma förbi det på följande sätt:

    if line and line[2] != ":"

    till

    if line and len(line)>2 and line[2] != ":"

    opened by erikrenberg 2
  • IndexError: list index out of range

    IndexError: list index out of range

    Hej,

    Tack för ett bra script. Tyvärr smäller det ganska ofta på nedan.

    Python37>python c:\temp\main.py Traceback (most recent call last): File "c:\temp\main.py", line 111, in <module> options[0], *options).grid(row=0, column=1) IndexError: list index out of range

    Mina parametrar är. personer: 3 tid: 22/06

    OS: win 10 Python: 3.7

    opened by fadern 2
  • Modify again?

    Modify again?

    Hello again this time and sorry to bother you again once again... - something has been added to the equation... So the script sort of dies... is there any possibility you can have yet another look if you can do anything to make it work again like you did earlier? Thinking I can do the same as before for my nephews son if I take a photo of the screen, email him a picture and ask him to scan the qr-code with his phone and then open his bank-id and accept and then your script can start searching every 25th second... or something like that. Would be again and again and again highly appreciated if possible :) And thanks for your time. Again :))

    opened by umanonearth 1
  • blocked Firefox aswell?

    blocked Firefox aswell?

    Hello again,

    the script has been working but I tried to help my friend and now it seems not anymore. Tried it many times (the 1.1.1-version) and it fails. I run the .exe-file, it starts, I choose date and then it opens up a browser and the browser "fills" itself with date and so on but then the script dies - last "transmission" from the promt is "missing radioknappar" or something... Is there any possibilty u have a look? thanks a million so far anyways :)

    opened by umanonearth 1
Releases(v1.3.2)
Owner
Elias Floreteng
Elias Floreteng
DiscWrappy - A Python wrapper for the Discord bot API

DiscWrappy - A Python wrapper for the Discord bot API

Jeff Morris 4 Apr 25, 2022
How to make a QR Code of your own in python

QR CODE Bilgilendirme! " pip install qrcode pillow " kurmalısınız.

Aktali 1 Dec 24, 2021
An all-in-one discord bot!

Interbot Interbot is a do-it-all bot originally made for the Interbyte Studios discord server. This repo contains the code for this bot, allowing you

Logan 5 Aug 03, 2021
📦 Opensource Python wrapper for Hiven's REST and WebSocket API

hiven.py 📦 Opensource Python wrapper for Hiven's REST and WebSocket API Installation pip install -U hiven.py Usage hiven.py is currently under devel

Kevin Thomas 3 Sep 03, 2021
Scheduled Block Checker for Cardano Stakepool Operators

ScheduledBlocks Scheduled Block Checker for Cardano Stakepool Operators Lightweight and Portable Scheduled Blocks Checker for Current Epoch. No cardan

SNAKE (Cardano Stakepool) 4 Oct 18, 2022
Predict the Site EUI, given the characteristics of the building and the weather data for the location of the building.

wids_datathon_2022 Description: Contains a data pipeline used to predict energy EUI Goals: Dataset exploration Automating the parameter fitting, gener

1 Mar 25, 2022
Python wrapper for Interactive Brokers Client Portal Web API

EasyIB: Unofficial Wrapper for Interactive Brokers API EasyIB is an unofficial python wrapper for Interactive Brokers Client Portal Web API. Features

39 Dec 13, 2022
A Discord bot that allows you to rapidly deploy Minecraft servers seamlessly and painlessly from Discord.

Lyra - rapidly and painlessly deploy Minecraft servers from Discord Lyra lets you deploy Minecraft server instances via Docker with control through a

1 Dec 23, 2021
The official command-line client for spyse.com

Spyse CLI The official command-line client for spyse.com. NOTE: This tool is currently in the early stage beta and shouldn't be used in production. Yo

Spyse 43 Dec 08, 2022
GG Dorking is a tool to generate GitHub and Google dorking for pentesters and bug bounty hunters.

GG-Dorking GG Dorking is a python tool to generate GitHub and Google dorking links for pentesters and bug bounty hunters. It will help you to find imp

Eslam Akl 80 Nov 24, 2022
DDoS Script (DDoS Panel) with Multiple Bypass ( Cloudflare UAM,CAPTCHA,BFM,NOSEC / DDoS Guard / Google Shield / V Shield / Amazon / etc.. )

KARMA DDoS DDoS Script (DDoS Panel) with Multiple Bypass ( Cloudflare UAM,CAPTCHA,BFM,NOSEC / DDoS Guard / Google Shield / V Shield / Amazon / etc.. )

Hyuk 256 Jan 02, 2023
BT CCXT Store

bt-ccxt-store-cn backtrader是一个非常好的开源量化回测平台,我自己也时常用它,backtrader也能接入实盘,而bt-ccxt-store就是帮助backtrader接入数字货币实盘交易的一个插件,但是bt-ccxt-store的某些实现并不是很好,无节制的网络轮询,一些

moses 40 Dec 31, 2022
A wrapper for the Discord Python Pixels API.

DPYPX A simple wrapper around Python Discord Pixels. Requires Python 3.7+ (3.x where x = 7). Requires pillow and aiohttp from pip. Example import dpy

Artemis 3 Oct 01, 2022
a simple quant trading bot with CLI interface

shepherd a simple quant trading bot with CLI interface CLI shell command docs coming soon after I brush up the code and add more features :) Minimal R

m00n 0 Jun 06, 2022
:lock: Python 2.7/3.X client for HashiCorp Vault

hvac HashiCorp Vault API client for Python 3.x Tested against the latest release, HEAD ref, and 3 previous minor versions (counting back from the late

hvac 1k Dec 29, 2022
This is a Telegram video compress bot repo. By Binary Tech💫

This is a Telegram Video Compress Bot. Prouduct By Binary Tech 💫 Features Compresse videos and generate screenshots too.You can set custom video name

silentz lk 7 Mar 03, 2022
Trading bot - A Trading bot With Python

Trading_bot Trading bot intended for 1) Tracking current prices of tokens 2) Set

Tymur Kotkov 29 Dec 01, 2022
An Amazon Price Tracker app helps you to buy which product you want within sale price by sending an E-Mail.

Amazon Price Tracker An Amazon Price Tracker app helps you to buy which product you want within sale price by sending an E-Mail. Installing Download t

Aytaç Kaşoğlu 2 Feb 10, 2022
Handles SDVX EXCEED GEAR result screen photos and attempts to read it.

Handles SDVX EXCEED GEAR result screen photos and attempts to read it.

silverhawke 1 Jan 08, 2022
Total servers you're in!

Discord-Servercount With this script you can check the amount of servers you are in, along with statistics of how many servers you are owner in and in

Nickyux 1 Feb 12, 2022