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
Python wrapper for the GitLab API

Python GitLab python-gitlab is a Python package providing access to the GitLab server API. It supports the v4 API of GitLab, and provides a CLI tool (

1.9k Dec 31, 2022
VALORANT rank yoinker lets you retrieve the ranks and basic informations of everyone in the lobby, regardless of gamemode.

vRY VALORANT rank yoinker Retrieve the rank and basic information of everyone in the lobby, regardless of gamemode. Table of Contents Terms of Use Abo

Isaac Kenyon 270 Dec 30, 2022
Python lib to control HottoH based stove devices

Project desciption This library can be used to discuss with HootoH based stove devices Actually tested and validated with a CMG Drum stove. To use thi

3 May 16, 2022
Video-Player - Telegram Music/ Video Streaming Bot Using Pytgcalls

Video Player 🔥 ᴢᴀɪᴅ ᴠᴄ ᴘʟᴀyᴇʀ ɪꜱ ᴀ ᴛᴇʟᴇɢʀᴀᴍ ᴘʀᴏᴊᴇᴄᴛ ʙᴀꜱᴇᴅ ᴏɴ ᴘʏʀᴏɢʀᴀᴍ ꜰᴏʀ ᴘʟᴀʏ

Zaid 16 Nov 30, 2022
Rust UserBot, Telegram istifadəsini asanlaşdıran bir proyektdir.

RUST USERBOT 🇦🇿 Rust UserBot, Telegram istifadəsini asanlaşdıran bir proyektdir. Qurulum Heroku Serverə qurulum git clone https://github.com/rustres

1 Oct 25, 2021
Apprise - Push Notifications that work with just about every platform!

ap·prise / verb To inform or tell (someone). To make one aware of something. Apprise allows you to send a notification to almost all of the most popul

Chris Caron 7.2k Jan 07, 2023
livestream-chat: Overlay para chats de livestreams

livestream-chat Overlay para chats de livestreams. Inicialmente para rodar dentro do browser do obs-studio. TODO: Issues iniciais Suporte a API do You

Eduardo Mendes 10 Dec 16, 2022
Hack WhatsApp Account Easily(Android)

X-Whatsapp Hack WhatsApp Account Easily(Android) HOW TO RUN 👇 (Termux) pkg update && pkg upgrade pkg install python pkg install git git clone https:/

KiLL3R_xRO 72 Dec 21, 2022
Cyber Userbot

Cyber Userbot

Irham 0 May 26, 2022
Instagram auto reporting tool 100% working

INSTA REPORTER Instagram auto reporting tool 100% working Description this tool is made by Guccifer Shubham (shubhushubhu99) and by using this tool yo

Guccifer Shubham 26 Dec 28, 2022
A simple, infinitely scalable, SQS based queue.

SimpleQ A simple, infinitely scalable, SQS based queue. Meta Author: Randall Degges Email: [emai

Randall Degges 162 Dec 21, 2022
Holly ♥️ is usefull group management bot in telegram 🎋

Holly ♥️ is usefull group management bot in telegram 🎋

Kasun bandara 1 Dec 03, 2021
A wrapper for aqquiring Choice Coin directly through a Python Terminal. Leverages the TinyMan Python-SDK.

CHOICE_TinyMan_Wrapper A wrapper that allows users to acquire Choice Coin directly through their Terminal using ALGO and various Algorand Standard Ass

Choice Coin 16 Sep 24, 2022
Michelle is a Discord Bot coded in Python with Discord.py by Mudit07.

Michelle is a Discord Bot coded in Python with Discord.py by Mudit07.

Michelle 3 Oct 09, 2021
Maintained wavelink fork for pycord

Pycord.Wavelink Wavelink is robust and powerful Lavalink wrapper for Pycord! Wavelink features a fully asynchronous API that's intuitive and easy to u

Pycord Development 23 Dec 11, 2022
A minimalistic library designed to provide native access to YNAB data from Python

pYNAB A minimalistic library designed to provide native access to YNAB data from Python. Install The simplest way is to install the latest version fro

Ivan Smirnov 92 Apr 06, 2022
Notion4ever - Python tool for export all your content of Notion page using official Notion API

NOTION4EVER Notion4ever is a small python tool that allows you to free your cont

50 Dec 30, 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 battle-tested Django 2.1 project template with configurations for AWS, Heroku, App Engine, and Docker.

For information on how to use this project template, check out the wiki. {{ project_name }} Table of Contents Requirements Local Setup Local Developme

Lionheart Software 64 Jun 15, 2022
A Collection Manager for the objkt.com Minting Factory

Objkt Collection Manager A Collection Manager for the objkt.com Minting Factory. This contract can create a collection on objkt.com and mint into it.

Asbjorn Enge 5 Nov 22, 2022