lk3de / impftermin-checker

Search Impftermine and Vermittlungscodes in Germany automatically
GNU General Public License v3.0
21 stars 9 forks source link

TerminCheck HTTP 429 #2

Closed mjoppich closed 3 years ago

mjoppich commented 3 years ago

Hey, thanks for the neat tool!

Sometime the termincheck

https://xxx-iz.impfterminservice.de/rest/suche/termincheck?plz=<PLZ>&leistungsmerkmale=L920,L921,L922,L923

returns a HTTP 429 error (Too many requests). This seems to happen more frequently on Linux than on Windows, but I've noticed it happening particularly frequently with Selenium, while my "manual" browser works fine.

Any idea how those guys at 116117 find out about it being automated? Should one add random wait times?

lk3de commented 3 years ago

Honestly, I have no idea 😕 based on my experience so far, those HTTP 429 really seem to appear randomly. I don't think that they have any special algorithm that detects automated behavior, probably just a simple "bot protection". 😄 Based on my experience, the overall success rate is much better in the morning time between ~6-9am, but so far I didn't analyze my log output how often HTTP 429 appeared.

Anyway, random wait times could be worth a try. I'm curious about any results in case you want to try it! 🙂

Another possible root cause could be the cookie behavior. Maybe it's better to leave the browser window open all the time? Or close it after each single code? Lots of try-and-error involved here 😅