jonkpirateboy / Pass-fur-alle

Since Polisens web queueing solution for getting a passport sucks, and it is more or less impossible to book a time, I wrote this small javascript. What it does is that it automates the searching for a bookable time. In the file you just change the constants to your information and away you go. :)
GNU General Public License v3.0
376 stars 96 forks source link

https://reserv.polisen.se/for-manga-anrop/ #21

Closed mickepop closed 2 years ago

mickepop commented 2 years ago

Hej, När jag kör skriptet så hamnar jag på: https://reserv.polisen.se/for-manga-anrop/ Några tips?

antonhedling commented 2 years ago

Ser ut som att dom kollar efter webdriver i requesten numera (?), för jag får detta nu också trots att jag inte blir blockerad om jag går manuellt. Googlade mig runt lite och det fungerade för mig att lägga till detta direkt under web = webdriver.Chrome(), rad 13. Dvs så att det ser ut såhär:

web = webdriver.Chrome()
web.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", {
    "source":
        "const newProto = navigator.__proto__;"
        "delete newProto.webdriver;"
        "navigator.__proto__ = newProto;"
    })

Taget från: https://stackoverflow.com/a/65816505

jonkpirateboy commented 2 years ago

Uppdatera till senaste versionen