nickirk / immo

A bot which monitors immoscout24 and wg-gesucht.de for new flat offers and send requests to offers automatically.
GNU General Public License v3.0
146 stars 44 forks source link

Improve fault tolerance #7

Closed korthout closed 4 years ago

korthout commented 4 years ago

The program would just shutdown after a problem. For certain problems, for example when you have a bad internet connection and immoscout does not reply properly (resulting in a JSONDecodeError) we can now handle this with a message printed to the console, and just retrying the next minute.

Similarly the chromedriver handling is fault sensitive so we've simply made this a little more easy. This might cause the bot to not reply to certain offers, but at least it stays running afterwards to try to apply for others.

We might consider to store offer-ids of failed attempts in a specific file so you have a better understanding of which offers failed.