26 lines
1.2 KiB
Markdown
26 lines
1.2 KiB
Markdown
**English** · [Dansk](Home-da) · [Bahasa Melayu](Home-ms)
|
|
|
|
# Snack and Lift bot
|
|
|
|
A Selenium bot that books classes at the practice gym [Snack and Lift](https://appbrewery.github.io/gym/). It is the solution to day 49 of Udemy's *100 Days of Code*. Each page below explains what one lecture step teaches.
|
|
|
|
The bot logs in, books every Tuesday and Thursday 6pm class (or joins the waitlist), verifies the result on the My Bookings page and retries when the site fails a request.
|
|
|
|
- [Getting started](Getting-Started): the `.venv`, your account, running and testing.
|
|
- The nine steps, below.
|
|
- [Troubleshooting](Troubleshooting).
|
|
|
|
Source and issues: [repository](https://git.tirsystem.com/Tirsvad-Udemy-100-days-of-code/049-snack-and-lift).
|
|
|
|
## The nine steps
|
|
|
|
1. [Step 1: Setup, Chrome profile and navigation](Step-1)
|
|
2. [Step 2: Automated login](Step-2)
|
|
3. [Step 3: Book the next Tuesday class](Step-3)
|
|
4. [Step 4: Check if a class is already booked](Step-4)
|
|
5. [Step 5: Counters and a summary](Step-5)
|
|
6. [Step 6: Every Tuesday and Thursday class](Step-6)
|
|
7. [Step 7: Verify on the My Bookings page](Step-7)
|
|
8. [Step 8: Time travel quality assurance](Step-8)
|
|
9. [Step 9: Resilience against network failures](Step-9)
|