sibalzer / impfbot

Benachrichtigungs-Bot für das niedersächische Impfportal / Notification bot for the lower saxony vaccination portal https://impfportal-niedersachsen.de
GNU General Public License v3.0
36 stars 8 forks source link

Feedback & Support #5

Open sibalzer opened 3 years ago

sibalzer commented 3 years ago

Hier ist der passene Ort für Feedback und Fragen für die es sich nicht lohnt ein Issue zu eröffnen.

Irgendwie hat sich hier als Dokumentatiossprache Angelsächsisch eingebürgert 🙃. Aber keine Angst, ich beantworte auch Fragen auf Deutsch 😄. Wäre nur cool wenn die sonstigen Issues einheitlich Englisch bleiben.

glutamat33 commented 3 years ago

hey! did you get my twitter DMs?

sibalzer commented 3 years ago

Had to strict privacy setting turned. Should be working now.

Wyall commented 3 years ago

Does it matter if the birth date is written as 06 or 6 e.g. for the month of June? You changed it in the Readme but not everywhere

sibalzer commented 3 years ago

Doesn't matter. Only the year must be a 4 digt number.

Edit: I've made the dates consistent to avoid further irritations.

thetha commented 3 years ago

Did someone manage to get a free slot with this yet?

glutamat33 commented 3 years ago

I found 1 free slot today after waiting 2 days. Unfortunately I was too slow, it was already gone as I locked in...

thetha commented 3 years ago

I have started right now. Running 4 Hours, nothing yet.

sibalzer commented 3 years ago

Unfortunately, the policy according to which the vaccination centers publish the dates is not uniform and consistent, it is difficult to estimate when the dates are published (here in OS, most slots are published on Thu/Fri at each full hour from 11-18). To get single appointments in cities is almost impossible. The best chance is when batches > 5 are published.

You can also set the bot more agressive. Default is very passive. Just adjust ADVANCED sleep_between_requests_in_s & co (atm the bot waits 150s or 2:30min between each successful request, 60s should be fine to. At 30s i got IP-Banned [Just reset the router to remove the Ban an get a new IP]).

paulypeter commented 3 years ago

@sibalzer I'd like to continue working on this bot, do you have something I should do next?

sibalzer commented 3 years ago

Im out of ideas atm. Maybe color coded logging? Discord notifications?

paulypeter commented 3 years ago

Alright, maybe I'll look into those!

sibalzer commented 3 years ago

Also #39

ToHindahl commented 3 years ago

Otherwise, I have other ideas such as proxy support. That means a proxy.txt in which several proxies are inside and so you could make the intervals smaller and check the availability more often. Or I don't know to what extent it is possible to also state the available date in the notification?

riher commented 3 years ago

impfbot got me a vaccination today! :tada: Thanks a lot for your work! :+1:

glutamat33 commented 3 years ago

Me too! THANKS A LOT!!

Tubbyx commented 3 years ago

imfbot found a free slot but i was too slow. They must be releasing a lot of free slots today

sibalzer commented 3 years ago

proxy support

Will be added

what extent it is possible to also state the available date in the notification

Should also be possible i think

thetha commented 3 years ago

It worked!

thetha commented 3 years ago

Today i got 10 appiointments! The bot founde something like 3000 of them from the 7th on.

dtegunov commented 3 years ago

Thank you so much for releasing this tool!

Each center is assigned one vaccine type in the response – vector or mRNA. Do you know if this is a hard constraint, or do they usually offer both types regardless? Depending on age and current Stiko guidelines, some may spend time watching a center with the wrong vaccine type instead of watching a more distant center with the right type. Would it be worth pointing this out and having a list of all centers and their advertised vaccine type in the readme?

sibalzer commented 3 years ago

Usually, the vaccination centers offer both types.

Monitoring a more distant vaccination center would make no sense since you are bound to your local center in lower saxony (as far as i know). The type (mRNA/vector) is purely dependent on the age, so you can't monitor a center with the wrong type. The allocation is done by the backend of the vaccination portal. So the practical use of a list in the readme would be close to 0.

Eg: 27472 or 27474 and over 60 years old: IZ Cuxhaven - AstraZeneca or IZ Cuxhaven - Johnson & Johnson 27472 or 27474 and under 60 years old: IZ Cuxhaven - Moderna or IZ Cuxhaven - BioNtech

tldr: There is a 1-n relationship between vaccination centers and you, depending on age and zip code, allocated by the backend of the vaccination portal.

paulypeter commented 3 years ago

Usually, the vaccination centers offer both types.

They do. During my appointment, there were people being vaccinated with AZ, some with BioNtech/Pfizer, and some with Moderna.

you are bound to your local center in lower saxony

That is correct. This is implemented by the gov to reduce 'vaccination tourism'.

paulypeter commented 3 years ago

@sibalzer Are there any more issues on the roadmap for v3.0.0?

e. g. #58 or #59 ?

Otherwise, I think that's quite a big update already, so those could be implemented later?

sibalzer commented 3 years ago

v3.0.0 is big indeed. Lets schedul them for an later update.

ronizzel commented 3 years ago

This morning the bot alerted me for a free slot, and I successfully took the chance and am extremely happy I got my Erstimpfung already. I'm very grateful for your work and hope, the impfbot can heal many people from "when is there a slot finally?"-anxiety :-)

sibalzer commented 3 years ago

Apparently "batches" are also published as single slots shortly after each other. So just click on "Search" a few times more often (you don't need to reload the page!).

log file running for 1h on 1s cooldown for ip ban testing purposes - dont be me! ``` 2021-06-08 16:55:59 [INFO] No free slot. 2021-06-08 16:56:00 [INFO] No free slot. 2021-06-08 16:56:02 [INFO] Free slot! (2) Moderna/mRNA 2021-06-08 16:56:03 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:05 [INFO] No free slot. 2021-06-08 16:56:06 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:07 [INFO] No free slot. 2021-06-08 16:56:09 [INFO] No free slot. 2021-06-08 16:56:10 [INFO] No free slot. 2021-06-08 16:56:12 [INFO] No free slot. 2021-06-08 16:56:13 [INFO] No free slot. 2021-06-08 16:56:14 [INFO] No free slot. 2021-06-08 16:56:16 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:17 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:18 [INFO] No free slot. 2021-06-08 16:56:20 [INFO] No free slot. 2021-06-08 16:56:21 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:23 [INFO] No free slot. 2021-06-08 16:56:24 [INFO] No free slot. 2021-06-08 16:56:26 [INFO] No free slot. 2021-06-08 16:56:27 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:29 [INFO] No free slot. 2021-06-08 16:56:30 [INFO] No free slot. 2021-06-08 16:56:31 [INFO] No free slot. 2021-06-08 16:56:33 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:34 [INFO] No free slot. 2021-06-08 16:56:36 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:37 [INFO] No free slot. 2021-06-08 16:56:38 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:40 [INFO] No free slot. 2021-06-08 16:56:41 [INFO] No free slot. 2021-06-08 16:56:42 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:44 [INFO] No free slot. 2021-06-08 16:56:45 [INFO] No free slot. 2021-06-08 16:56:46 [INFO] No free slot. 2021-06-08 16:56:48 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:49 [INFO] No free slot. 2021-06-08 16:56:51 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:52 [INFO] No free slot. 2021-06-08 16:56:53 [INFO] No free slot. 2021-06-08 16:56:55 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:56:56 [INFO] No free slot. 2021-06-08 16:56:57 [INFO] No free slot. 2021-06-08 16:56:59 [INFO] No free slot. 2021-06-08 16:57:00 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:57:02 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:57:03 [INFO] No free slot. 2021-06-08 16:57:04 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:57:06 [INFO] No free slot. 2021-06-08 16:57:07 [INFO] Free slot! (1) Moderna/mRNA 2021-06-08 16:57:08 [INFO] No free slot. ```
DennisWilken commented 3 years ago

First of all, a big thank you for your work. I really appreciate it. Today, I got three notifications with 1/109/1 slots. I didn't have luck though.

I would like to run the group bot in parallel on the same Telegram channel. I haven't checked the code. Are there different messages for the two modi? It could be helpful to add something like "Einzeltermin" and "Gruppentermin" to the output message to clarify what people should click.

Another feature that I would like to see, is a notification mail in case there is an IP ban. There should be an option to send this mail to a different set of addresses to avoid spamming the group.

paulypeter commented 3 years ago

Currently, the bot only checks either for single or (exclusive or) group appointments. It then (currently) sends the same message.

A possible, albeit hopefully temporary, solution for you would be to run two bots, one configured for single appointments and one configured for group appointments.

@sibalzer We could include that in a later version, maybe?

sibalzer commented 3 years ago

I would like to run the group bot in parallel on the same Telegram channel. I haven't checked the code. Are there different messages for the two modi? It could be helpful to add something like "Einzeltermin" and "Gruppentermin" to the output message to clarify what people should click.

We could add some custom prefix (in config) to the message eg: [My Group bot for 49123] Freier Impfslot (11)! AstraZeneca/Vector

Another feature that I would like to see, is a notification mail in case there is an IP ban. There should be an option to send this mail to a different set of addresses to avoid spamming the group.

We could indeed add a optional admin notification receiver list mail. (#94)

A possible, albeit hopefully temporary, solution for you would be to run two bots, one configured for single appointments and one configured for group appointments.

Dockerize everything! One problem is, we don't know if they even publish any group appoinments (at least I didn't find any during testing). The other is, that we would need some more advanced scheduling mechanism as sleep (apscheduler?). Because of that, I classify this as a very low priority.

Doomnometron commented 3 years ago

Ich bekomme die Mail Benachrichtigung nicht eingerichtet. Habe schon unterschiedliche Anbieter (web.de / GMail) probiert, aber keiner funktioniert.

web.de smtp.web.de 587/tcp

[ERROR] Couldn't send mail: SMTP AUTH extension not supported by server.

GMail smtp.gmail.com 465/tcp

2021-06-09 18:21:56 [ERROR] Couldn't send mail: (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials u18sm248744wmj.15 - gsmtp')

:-(

paulypeter commented 3 years ago

@Doomnometron

Für GMail muss zunächst ein App-Passwort erstellt werden. Dieses kann man dann für den Impfbot verwenden. Hinweise dazu gibt es hier.

Ich schätze, für web.de wird es ähnlich sein.

Doomnometron commented 3 years ago

@paulypeter Bei Google kann ich erst ein App Passwort einrichten, wenn ich 2FA aktiviert habe - habe ich aber nicht (ist kein aktiv genutztes Konto).

/edit Fehler gefunden, es musste bei GMail die Option "Weniger sichere Apps zulassen" aktiviert werden.

paulypeter commented 3 years ago

@Doomnometron

Alles klar, diese Option habe ich auch gerade gefunden.

sibalzer commented 3 years ago

Ich hab grad mein altes Gmail Konto ausgegraben und eine Anleitung unter docs/SETUP_EMAIL_SERVICES.md geschrieben. Web.de konnte ich nicht testen sollte aber so passen.

krohn commented 3 years ago

It works. Got my slot after running the script for less than a week. 🎉 The bot alerted me some more times the other days, but I was too slow filling the forms. Thanks a lot for your work! 👍

quickcoffee commented 3 years ago

Thanks for the work! Just managed to book an appointment after I was too slow with the forms in the previous days, but left the tab with the calendar view open and switched between the months immediately after I got a notification from the impfbot! 😍

AnjaMirenska commented 3 years ago

Hi, how do I know whether the bot works? When I double-click on windows_validate.bat, nothing happens (well, for a very short moment I see in my task bar that apparently a window is open, but it disappears immediately). It doesn't matter whether I execute the file as administrator or not. Should I get a Telegram message in my bot in case the validation was successful?

andy71 commented 3 years ago

Try to start the windows_validate.bat from a command shell. To open a command shell, please press Win+r and in this dialogue enter cmd and press enter. In the command shell change the directory to where the windows_validate.bat is. You can use something like this...

cd /D x:/path/to/windows_validate.bat

Now try to start the windows_validate.bat. I am pretty sure you will see some more information which can help to find the issue.

AnjaMirenska commented 3 years ago

Try to start the windows_validate.bat from a command shell. To open a command shell, please press Win+r and in this dialogue enter cmd and press enter. In the command shell change the directory to where the windows_validate.bat is. You can use something like this...

cd /D x:/path/to/windows_validate.bat

Now try to start the windows_validate.bat. I am pretty sure you will see some more information which can help to find the issue.

Ah, ok, thanks... I forgot that I haven't installed Python on my new laptop, this seems to be the problem. Thanks a lot again!