timreibe / vaccipy

Automatisierte Impfterminbuchung für www.impfterminservice.de
MIT License
517 stars 115 forks source link

It seems that 116117 website has a bot protection now. #238

Closed ystaud closed 3 years ago

ystaud commented 3 years ago

I found this bug which appears right after starting the script. It seems that the "Impfterminservice" website now have a bot protection and therefore the script is not working anymore. I'll soon attach a picture with the bot protection error.

` 2021-05-30 20:08:41.107 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] 102 Impfzentren verfügbar 2021-05-30 20:08:41.107 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] 'Zentrales Impfzentrum Heidelberg - Commissary Patrick-Henry-Village' in 69124 Heidelberg ausgewählt 2021-05-30 20:08:41.107 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] 'Kreisimpfzentrum Weinheim - 3-Glocken-Center' in 69469 Weinheim ausgewählt 2021-05-30 20:08:41.107 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] 'Impfzentrum am Robert-Bosch-Krankenhaus' in 70376 Stuttgart ausgewählt 2021-05-30 20:08:41.107 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] 'Kreisimpfzentrum Sinsheim - Parsa-Halle' in 74889 Sinsheim ausgewählt 2021-05-30 20:08:41.107 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] 'Kreisimpfzentrum Bruchsal' in 76646 Bruchsal-Heidelsheim ausgewählt 2021-05-30 20:08:41.189 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] [L920] Altersgruppe: 16+ (Intervall: 40 Tage) --> ['BioNTech'] 2021-05-30 20:08:41.189 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] [L921] Altersgruppe: 18+ (Intervall: 40 Tage) --> ['Moderna', 'BioNTech'] 2021-05-30 20:08:41.190 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] [L922] Altersgruppe: 60+ (Intervall: 40 Tage) --> ['Moderna', 'BioNTech', 'AstraZeneca'] 2021-05-30 20:08:41.190 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] [L923] Altersgruppe: 60+ (Intervall: ? Tage) --> ['Johnson&Johnson']

2021-05-30 20:08:41.209 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] Browser-Cookies generieren 2021-05-30 20:08:44.998 impfterminservice [err] [cookies_erneuern] SessionNotCreatedException exception raised - retry 1 2021-05-30 20:08:45.002 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] Browser-Cookies generieren 2021-05-30 20:08:48.330 impfterminservice [err] [cookies_erneuern] SessionNotCreatedException exception raised - retry 2 2021-05-30 20:08:48.331 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] Browser-Cookies generieren 2021-05-30 20:08:51.598 impfterminservice [err] [cookies_erneuern] SessionNotCreatedException exception raised - retry 3 2021-05-30 20:08:51.598 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] Browser-Cookies generieren 2021-05-30 20:08:54.921 impfterminservice [err] [cookies_erneuern] SessionNotCreatedException exception raised - retry 4 2021-05-30 20:08:54.922 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] Browser-Cookies generieren 2021-05-30 20:08:58.258 impfterminservice [err] [cookies_erneuern] SessionNotCreatedException exception raised - retry 5 2021-05-30 20:08:58.258 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] Browser-Cookies generieren 2021-05-30 20:09:01.648 impfterminservice [err] [cookies_erneuern] SessionNotCreatedException exception raised - retry 6 2021-05-30 20:09:01.649 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] Browser-Cookies generieren 2021-05-30 20:09:04.979 impfterminservice [err] [cookies_erneuern] SessionNotCreatedException exception raised - retry 7 2021-05-30 20:09:04.979 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] Browser-Cookies generieren 2021-05-30 20:09:08.292 impfterminservice [err] [cookies_erneuern] SessionNotCreatedException exception raised - retry 8 2021-05-30 20:09:08.292 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] Browser-Cookies generieren 2021-05-30 20:09:11.603 impfterminservice [err] [cookies_erneuern] SessionNotCreatedException exception raised - retry 9 2021-05-30 20:09:11.603 impfterminservice [inf] [VWXY | 69124, 69163, 69469, 70376, 74889, 76646] Browser-Cookies generieren

`

timreibe commented 3 years ago

Could you please Upgrade your Chrome to Version 91

sarnau commented 3 years ago

I have it. The current master opens Chrome with "PLAT-ZHAL-TER1" as the code, which is rejected. It ends right there.

ystaud commented 3 years ago

I have checked my Chrome version and I have the newest installed.

NProdanova commented 3 years ago

I also get the same issue

timreibe commented 3 years ago

What error message appears after the last retry of "SessionNotCreatedException"? There should be a more detailed message

petrows commented 3 years ago

Same issue for me.

ystaud commented 3 years ago

Next message is: "Anfrage wurde von der Bot Protection" geblockt". This is the second case. I found an appointment and the script wanted to book it but I've received the above mention terminal output. This was at 3 am. I tried to restart the script but than it didn´t even create a session. (This is the initial output from above.)@iamnotturner

sinun98 commented 3 years ago

Looks like u use a old version. Can you please redownload and try to gen a Vermittlercode. If that works the search also works.

ystaud commented 3 years ago

I´ll test it and report my results later. Thank you for helping! It could be caused by searching for 7 days straight ... so they might have blocked my IP address (just an assumption).

ohaeusler commented 3 years ago

For me "PLATZHALTER1" results in a block. Changing worked for me.

NProdanova commented 3 years ago

I also get the same issue

It got solved when I pulled the new version. I could generate a code and now I awlays get "Terminpaare k▒nnen nicht geladen werden: 401 Unauthorized". Is this normal?

timreibe commented 3 years ago

I also get the same issue

It got solved when I pulled the new version. I could generate a code and now I awlays get "Terminpaare k▒nnen nicht geladen werden: 401 Unauthorized". Is this normal?

@NProdanova https://github.com/iamnotturner/vaccipy/issues/116#issuecomment-848690301

ystaud commented 3 years ago

My IP was blocked due to an ongoing search that lasted 192h (8 days) .... :laughing: I restarted my laptop and also updated vaccipy. Now, it works again. Thank you all for helping and the provided support!

petrows commented 3 years ago

I dont think it is related to IP, looks like it was server-side problem.