Summary of Automating My Bill Payments with Python and Selenium
Corey M. Shafer demonstrates automating bill payments using Python and Selenium in the video. The script automates logging into a local utility website, filling in account information, and submitting payment details. Skills from separate tutorials are combined to achieve this goal, including using Selenium for browser navigation, handling secret credentials with .env files, and waiting for elements to load before interaction. The speaker also shows how to blur sensitive information in the browser using JavaScript.
Code Organization
- The code is organized into functions for better readability and error handling.
- The main function manages the script flow with exception handling to catch errors.
- Refactoring the code ensures reaching the payment page, with a new function created to submit payment information, including credit card details.
- The script verifies payment amounts and handles exceptions for high or incorrect amounts.
Progress Tracking and Notifications
- To track progress, logging is added.
- Notifications are sent via email and text for payment success or failure.
Future Plans
- Corey plans to schedule the script as a Cron job.
- The video emphasizes the practical application of combining various concepts and hints at future tutorials on unit testing and financial analysis projects.
- Links to related tutorials are available in the video description.
Notable Quotes
— 37:48 — « General web driver error. »
— 43:40 — « Timed out waiting for element to be present. »
— 44:28 — « General web driver error. »
— 56:17 — « Today, the weather was ok., »
— 73:30 — « failed to run script.] »
Category
Technology