Web automation with Selenium and Python
Blog post from LogRocket
After moving to Redmond, WA, the author decided to engage in badminton to stay active, but faced challenges in booking court slots due to high demand during prime hours. To address this, they developed an automated booking system using Python and Selenium to navigate the online reservation system outsourced by Northwest Badminton Academy to Zen Planner. The automation involves logging in, navigating the calendar, and booking available slots according to the academy's rules, such as limiting bookings to three weekdays and two weekends. The project also demonstrates handling issues like element staleness and suggests further improvements, such as running the automation in headless mode and scheduling it to execute at optimal times. The author shares comprehensive steps and code snippets for creating the automation, encouraging readers to experiment and enhance the system with additional features.