4 ms·
I did this for one of my classes as well. But since it was just a one off, I just put this bash script in a cron job on a free-tier AWS ec2. It just did a quick
by NiceGuy_Ty 9y ago
I did this for one of my classes as well. But since it was just a one off, I just put this bash script in a cron job on a free-tier AWS ec2. It just did a quick and dirty parse of the html, which for my university wasn't behind a login wall.
$seats="$(curl $URL | sed \"140qd\" | sed -nE \"s/<TD CLASS=\\\"$CLASS\\\">|<\\/TD>//gp\")"
if [ $seats -gt 0 ]; then
echo "Go register for class $URL" | msmtp -a "default" $EMAIL
fi
- EE84M3i 9y agoYep. This is what I did. Also, I just used the email address for my phone's SMS. I'm not sure why you need Twilio for this, seems like over kill to me.
- thrav 9y agoDid the same thing for an apartment hunt several years ago (one particular realtor had all the best stuff going up on a personal site) and also just notified via email. This is done the way that it is by their content marketing department.
- aw3c2 9y agoIt's an ad for Twilio, of course Twilio is needed for that.
- AdamJacobMuller 9y agoThe email-to-sms gateway for AT&T was very unreliable for me.