I just joined a country club where tee times fill up fast, and I'm wondering if it's feasible to create a PowerShell script that could check for open tee times every 6 hours. Ideally, I'd like this script to log in to the club's booking system, check for any cancellations, and then send me an email or text alerting me if a spot opens up. Is this doable?
5 Answers
Yes, it's totally possible! You might need to use Selenium to handle the login and navigation part of the website. This way, you can scrape the necessary information if an API isn't available.
It really depends on the golf club's setup and what they publicize. Just remember, if the details aren't openly available, your script's ability to check the availability will be limited. But yes, it's totally possible!
Using the Invoke-WebRequest command is a great way to pull the available tee times. You can also set up email alerts using Send-MailMessage with an SMTP server. Just keep in mind, it all depends on how the tee times are displayed. If they have a public API, it'll simplify the process a lot!
You can definitely set this up! A scheduled task on Windows could run your script. The main obstacle is whether the booking system has an API or a way to access the data. If it does, you should be good to go!
One thing to consider is whether you need to be logged in to see the available times. That could change how you set up your script for scheduled checks.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically