Network Resilience - When servers don't play nice! 🌐

The final boss level! The real world and real websites often have networking and other issues. Can your bot handle them? This step is the most difficult.


Step 1: Setup the chaos

  1. Log in as admin

  2. Click "Clear all Bookings" (if you click "Reset All Data", you have to manually register your student account again)

  3. Enable "Network Simulation"

  4. Set failure rate to 50% (brutal!)

  5. Reset to "Real Time"

Setting the failure rate to 50% will make half of your login and booking attempts fail.

Think about what you might do "retry" an action like logging in or booking a class.


Make your bot unstoppable:


def retry(func, retries=7, description=None):

This is a hard challenge. Have a look here if you need a partial Solution & Hint


Here's how your script might behave like if everything is working:



COMPLETE SOLUTION CODE

🎉 Congratulations!

If you got this far, bravo! 👏👏👏 You've built a robust gym booking bot that can:

Now you'll never miss leg day again! (Unless you want to... I won't judge 🦵)